Enum Class ClusterEventType

java.lang.Object
java.lang.Enum<ClusterEventType>
org.gcube.informationsystem.resourceregistry.cluster.ClusterEventType
All Implemented Interfaces:
Serializable, Comparable<ClusterEventType>, Constable

public enum ClusterEventType extends Enum<ClusterEventType>
The kinds of event broadcast across service instances over the ClusterEventBus.

Adding a new kind here is the whole cost of adding a new cross-instance signal: the bus itself, its two transport channels, and its de-duplication are shared by every kind. In particular, a new kind does not cost an additional permanently-reserved OrientDB session, which is what a per-concern Live Query subscription would cost.

Author:
Luca Frosini (ISTI - CNR)
  • Enum Constant Details

    • POOL_INVALIDATION

      public static final ClusterEventType POOL_INVALIDATION
      An ODatabasePool must be discarded because the permission state it authenticated with is now stale. Payload: the affected Context UUID, as a string.
    • SCHEMA_CHANGE

      public static final ClusterEventType SCHEMA_CHANGE
      The Type schema changed (a Type was created, updated, or deleted), so every projection derived from it — the Redis type cache, the model knowledge, the generated documentation, the schema loaded by the connection pools — is now out of date. Payload: the schema version the emitting instance had just written, as a string.
  • Method Details

    • values

      public static ClusterEventType[] 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 ClusterEventType 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