Enum TransferEvent.Type
- java.lang.Object
-
- java.lang.Enum<TransferEvent.Type>
-
- com.tangosol.net.events.partition.TransferEvent.Type
-
- All Implemented Interfaces:
Serializable
,Comparable<TransferEvent.Type>
- Enclosing interface:
- TransferEvent
public static enum TransferEvent.Type extends Enum<TransferEvent.Type>
TheTransferEvent
types.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ARRIVED
ThisTransferEvent
is dispatched when a set ofentries
have been transferred to thelocal member
or restored from backup.ASSIGNED
ThisTransferEvent
is dispatched when a partition has been assigned to thelocal member
.DEPARTED
ThisTransferEvent
is dispatched when a partition has been successfully transferred from thelocal member
.DEPARTING
LOST
ThisTransferEvent
is dispatched when a partition has been orphaned (data loss may have occurred), and the ownership is assumed by thelocal member
.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.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static TransferEvent.Type
valueOf(String name)
Returns the enum constant of this type with the specified name.static TransferEvent.Type[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ARRIVED
public static final TransferEvent.Type 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
public static final TransferEvent.Type 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
public static final TransferEvent.Type 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
public static final TransferEvent.Type 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
public static final TransferEvent.Type 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
public static final TransferEvent.Type RECOVERED
ThisTransferEvent
is dispatched when a set ofentries
have been recovered from a persistent storage by thelocal member
.
-
ROLLBACK
public static final TransferEvent.Type 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 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 nameNullPointerException
- if the argument is null
-
-