public interface TransferEvent extends Event<TransferEvent.Type>
entries
that are being
transferred.
Note: TransferEvents are dispatched to interceptors while holding a lock on the partition for being transferred, blocking any operations for the partition.
Modifier and Type | Interface and Description |
---|---|
static interface |
TransferEvent.RecoveryTransferEvent
A RecoveryTransferEvent is raised due to the recovery of a partition
from a persistent store.
|
static class |
TransferEvent.Type
The
TransferEvent types. |
Modifier and Type | Method and Description |
---|---|
Map<String,Set<BinaryEntry>> |
getEntries()
Return a map of cache names and associated set of read-only
entries encapsulated in this TransferEvent . |
Member |
getLocalMember()
Return the local
Member associated with this transfer
operation. |
int |
getPartitionId()
Return the ID of the partition being transferred.
|
Member |
getRemoteMember()
Return the remote
Member associated with this transfer
operation. |
getDispatcher
getType, nextInterceptor
int getPartitionId()
Member getLocalMember()
Member
associated with this transfer
operation. For the DEPARTING
event
this is the member the entries are being transferred from. For the
ARRIVED
event, this is the member
that is receiving the entries.Member getRemoteMember()
Member
associated with this transfer
operation. For the DEPARTING
event
this is the member the entries are being transferred to. For the
ARRIVED
event, this is the member that the
entries are being transferred from.
In the case the ARRIVED
event, the
returned member could be null, indicating a "partition restore"
operation.
Map<String,Set<BinaryEntry>> getEntries()
entries
encapsulated in this TransferEvent
. The
returned map and contained sets are immutable.