Package io.deephaven.kv.etcd
Enum Class EtcdDataRoutingROConnectionFactory
java.lang.Object
java.lang.Enum<EtcdDataRoutingROConnectionFactory>
io.deephaven.kv.etcd.EtcdDataRoutingROConnectionFactory
- All Implemented Interfaces:
Serializable
,Comparable<EtcdDataRoutingROConnectionFactory>
,java.lang.constant.Constable
This class manages a single underlying etcd connection (client) instance on behalf of its clients.
The etcd client instance provides the
EtcdDataRoutingRORole
Users of this class transparently share the underlying etcd client.
By calling getClientCreator()
they get a wrapper object that should be closed by the caller
when it is no longer necessary; the wrapper ensures that the last active user of the underlying client
closes it. The class creates a new client if a new call to getInstance()
happens after that.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic io.deephaven.kv.ClientCreator
Get an etcd client creator with read-only permissions.Returns the enum constant of this class with the specified name.static EtcdDataRoutingROConnectionFactory[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
INSTANCE
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
getClientCreator
public static io.deephaven.kv.ClientCreator getClientCreator()Get an etcd client creator with read-only permissions. Callers should callclose()
on the returned client creator when they are done with it.- Returns:
- a
ClientCreator
instance that should be closed when the caller is done with it.
-