Interface FederatedChangeEvent
- All Superinterfaces:
Event<FederatedChangeEvent.Type>
Represents all of the changes that have occurred against a single partition
in a Federated Cache as part of a partition transaction.
- Since:
- 12.2.1
- Author:
- cl 2014.06.09
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescription<K,V> Map <String, Iterable<ChangeRecord<K, V>>> Obtain theChangeRecords that are part of a transaction, organized by the name of the cache on which the changes occurred.Obtain the name of theParticipantfor theFederatedChangeEvent.Methods inherited from interface com.tangosol.net.events.Event
getDispatcher, getType, nextInterceptor
-
Method Details
-
getChanges
Obtain theChangeRecords that are part of a transaction, organized by the name of the cache on which the changes occurred.- Type Parameters:
K- the key typeV- the value type- Returns:
- a map of cache names to
ChangeRecords
-
getParticipant
String getParticipant()Obtain the name of theParticipantfor theFederatedChangeEvent.For the
FederatedChangeEvent.Type.COMMITTING_LOCALandFederatedChangeEvent.Type.COMMITTING_REMOTEevents this will be the localParticipantname.For the
FederatedChangeEvent.Type.REPLICATINGevent this will be either a remoteParticipantname or an interceptorParticipantname. Therefore, the interceptor must filter the events by theParticipantname to get the events intended for it.- Returns:
- the
Participantname.
-