Enum Class TransferEvent.Type

java.lang.Object
java.lang.Enum<TransferEvent.Type>
com.tangosol.net.events.partition.TransferEvent.Type
All Implemented Interfaces:
Serializable, Comparable<TransferEvent.Type>, Constable
Enclosing interface:
TransferEvent

public static enum TransferEvent.Type extends Enum<TransferEvent.Type>
The TransferEvent types.
  • Enum Constant Details

    • ARRIVED

      public static final TransferEvent.Type ARRIVED
      This TransferEvent is dispatched when a set of entries have been transferred to the local member or restored from backup.

      The reason for the event (primary transfer from another member or restore from backup) can be derived as follows:

      
           TransferEvent event;
           boolean       fRestored = event.getRemoteMember() == event.getLocalMember();
       
    • ASSIGNED

      public static final TransferEvent.Type ASSIGNED
      This TransferEvent is dispatched when a partition has been assigned to the local member. This event may only be emitted at the ownership senior during the initial partition assignment.
    • DEPARTING

      public static final TransferEvent.Type DEPARTING
      This TransferEvent is dispatched when a set of entries are being transferred from the local member. This event is followed by either a DEPARTED or ROLLBACK event to indicate the success or failure of the transfer.
    • DEPARTED

      public static final TransferEvent.Type DEPARTED
      This TransferEvent is dispatched when a partition has been successfully transferred from the local member. To derive the entries associated with the transfer, consumers should subscribe to the DEPARTING event that would precede this event.
    • LOST

      public static final TransferEvent.Type LOST
      This TransferEvent is dispatched when a partition has been orphaned (data loss may have occurred), and the ownership is assumed by the local member. This event may only be emitted at the ownership senior.
    • RECOVERED

      public static final TransferEvent.Type RECOVERED
      This TransferEvent is dispatched when a set of entries have been recovered from a persistent storage by the local member.
    • ROLLBACK

      public static final TransferEvent.Type ROLLBACK
      This TransferEvent is dispatched when partition transfer has failed and was therefore rolled back. To derive the entries associated with the failed transfer, consumers should subscribe to the DEPARTING event that would precede this event.
  • Method Details

    • values

      public static TransferEvent.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 TransferEvent.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