Enum TransferEvent.Type

    • Enum Constant Detail

      • 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.
      • 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 Detail

      • values

        public static TransferEvent.Type[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (TransferEvent.Type c : TransferEvent.Type.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static TransferEvent.Type valueOf​(String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified name
        NullPointerException - if the argument is null