Interface FederatedChangeEvent
-
- All Superinterfaces:
Event<FederatedChangeEvent.Type>
public interface FederatedChangeEvent extends 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:
ChangeRecord
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classFederatedChangeEvent.TypeThe types ofFederatedChangeEvents.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <K,V>
Map<String,Iterable<ChangeRecord<K,V>>>getChanges()Obtain theChangeRecords that are part of a transaction, organized by the name of the cache on which the changes occurred.StringgetParticipant()Obtain the name of theParticipantfor theFederatedChangeEvent.-
Methods inherited from interface com.tangosol.net.events.Event
getDispatcher, getType, nextInterceptor
-
-
-
-
Method Detail
-
getChanges
<K,V> Map<String,Iterable<ChangeRecord<K,V>>> 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.
-
-