Enum Class Service.Type

java.lang.Object
java.lang.Enum<Service.Type>
com.caplin.datasource.Service.Type
All Implemented Interfaces:
Serializable, Comparable<Service.Type>, Constable
Enclosing interface:
Service

public static enum Service.Type extends Enum<Service.Type>
Dictates the style of data publication supported by this service and how subscriptions should be re-balanced on peer connection and disconnection.
  • Enum Constant Details

    • ACTIVE

      public static final Service.Type 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

      public static final Service.Type BROADCAST
      Indicates this service publishes broadcast data.
      Subscription re-balancing: Not applicable.
    • CONTRIB

      public static final Service.Type 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

      public static final Service.Type 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

      public static Service.Type[] 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

      public static Service.Type valueOf(String name)
      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 name
      NullPointerException - if the argument is null