Package com.caplin.datasource
Enum Class Service.Type
- All Implemented Interfaces:
Serializable
,Comparable<Service.Type>
,Constable
- Enclosing interface:
- Service
Dictates the style of data publication supported by this service and how subscriptions should be re-balanced on
peer connection and disconnection.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionIndicates that this service provides active subscriptions.Indicates this service publishes broadcast data.Indicates that this service provides active subscriptions and/or channels.Indicates that this service provides active subscriptions for RESTful data. -
Method Summary
Modifier and TypeMethodDescriptionstatic Service.Type
Returns the enum constant of this class with the specified name.static Service.Type[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ACTIVE
Indicates that this service provides active subscriptions.
Subscription re-balancing: Liberator and Transformer will re-balance subscriptions across all providing peers when a peer providing this service connects or disconnects. -
BROADCAST
Indicates this service publishes broadcast data.
Subscription re-balancing: Not applicable. -
CONTRIB
Indicates that this service provides active subscriptions and/or channels.
Subscription re-balancing: Liberator and Transformer will not re-balance subscriptions once they have been established, however if a peer providing this service disconnects then its subscriptions will be redistributed amongst the remaining peers. -
REST
Indicates that this service provides active subscriptions for RESTful data.
Subscription re-balancing: Liberator and Transformer will not re-balance subscriptions once they have been established, however if a peer providing this service disconnects then its subscriptions will be redistributed amongst the remaining peers.
-
-
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
-