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 class
FederatedChangeEvent.Type
The types ofFederatedChangeEvent
s.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <K,V>
Map<String,Iterable<ChangeRecord<K,V>>>getChanges()
Obtain theChangeRecord
s that are part of a transaction, organized by the name of the cache on which the changes occurred.String
getParticipant()
Obtain the name of theParticipant
for 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 theChangeRecord
s 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
ChangeRecord
s
-
getParticipant
String getParticipant()
Obtain the name of theParticipant
for theFederatedChangeEvent
.For the
FederatedChangeEvent.Type.COMMITTING_LOCAL
andFederatedChangeEvent.Type.COMMITTING_REMOTE
events this will be the localParticipant
name.For the
FederatedChangeEvent.Type.REPLICATING
event this will be either a remoteParticipant
name or an interceptorParticipant
name. Therefore, the interceptor must filter the events by theParticipant
name to get the events intended for it.- Returns:
- the
Participant
name.
-
-