Enum Class TransferEvent.Type
- All Implemented Interfaces:
Serializable
,Comparable<TransferEvent.Type>
,Constable
- Enclosing interface:
TransferEvent
The
TransferEvent
types.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThisTransferEvent
is dispatched when a set ofentries
have been transferred to thelocal member
or restored from backup.ThisTransferEvent
is dispatched when a partition has been assigned to thelocal member
.ThisTransferEvent
is dispatched when a partition has been successfully transferred from thelocal member
.ThisTransferEvent
is dispatched when a partition has been orphaned (data loss may have occurred), and the ownership is assumed by thelocal member
.ThisTransferEvent
is dispatched when a set ofentries
have been recovered from a persistent storage by thelocal member
.ThisTransferEvent
is dispatched when partition transfer has failed and was therefore rolled back. -
Method Summary
Modifier and TypeMethodDescriptionstatic TransferEvent.Type
Returns the enum constant of this class with the specified name.static TransferEvent.Type[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ARRIVED
ThisTransferEvent
is dispatched when a set ofentries
have been transferred to thelocal 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
ThisTransferEvent
is dispatched when a partition has been assigned to thelocal member
. This event may only be emitted at the ownership senior during the initial partition assignment. -
DEPARTING
ThisTransferEvent
is dispatched when a set ofentries
are being transferred from thelocal member
. This event is followed by either a DEPARTED or ROLLBACK event to indicate the success or failure of the transfer. -
DEPARTED
ThisTransferEvent
is dispatched when a partition has been successfully transferred from thelocal member
. To derive theentries
associated with the transfer, consumers should subscribe to the DEPARTING event that would precede this event. -
LOST
ThisTransferEvent
is dispatched when a partition has been orphaned (data loss may have occurred), and the ownership is assumed by thelocal member
. This event may only be emitted at the ownership senior. -
RECOVERED
ThisTransferEvent
is dispatched when a set ofentries
have been recovered from a persistent storage by thelocal member
. -
ROLLBACK
ThisTransferEvent
is dispatched when partition transfer has failed and was therefore rolled back. To derive theentries
associated with the failed transfer, consumers should subscribe to the DEPARTING event that would precede this event.
-
-
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
-