public interface EventResponseTemplate
| Modifier and Type | Method and Description |
|---|---|
void |
Cache(int type,
Set<CacheEventData> keys,
int completionId) |
void |
CacheBatchInvalidation(String name,
List<Data> keys,
List<String> sourceUuids) |
void |
CacheInvalidation(String name,
Data key,
String sourceUuid) |
void |
CachePartitionLost(int partitionId,
String uuid) |
void |
DistributedObject(String name,
String serviceName,
String eventType) |
void |
Entry(Data key,
Data value,
Data oldValue,
Data mergingValue,
int eventType,
String uuid,
int numberOfAffectedEntries) |
void |
Item(Data item,
String uuid,
int eventType) |
void |
MapPartitionLost(int partitionId,
String uuid) |
void |
Member(Member member,
int eventType) |
void |
MemberAttributeChange(String uuid,
String key,
int operationType,
String value) |
void |
MemberSet(Set<Member> members) |
void |
PartitionLost(int partitionId,
int lostBackupCount,
Address source) |
void |
QueryCacheBatch(List<QueryCacheEventData> events,
String source,
int partitionId) |
void |
QueryCacheSingle(QueryCacheEventData data) |
void |
Topic(Data item,
long publishTime,
String uuid) |
void Member(Member member, int eventType)
member - Cluster member servereventType - Type of the event. The possible values are:
1: Member added event.
2: Member removed event.void MemberAttributeChange(String uuid, String key, int operationType, @Nullable String value)
uuid - Unique user id of the member servekey - Name of the attribute changedoperationType - Type of the change. Possible values are:
1: An attribute is added
2: An attribute is removedvalue - Value of the attribute. This field only exist for operation type of 1,
otherwise this field is not transferred at allvoid MemberSet(Set<Member> members)
members - The list of members in the cluster. It is used to retrieve the initial list in the cluster when the client
registers for the membership events.void Entry(@Nullable Data key, @Nullable Data value, @Nullable Data oldValue, @Nullable Data mergingValue, int eventType, String uuid, int numberOfAffectedEntries)
key - The key for the entry in the map.value - The value of the entry in the map.oldValue - The original value for the key in the map if exists.mergingValue - The incoming merging value of the entry event.eventType - Possible types are:
ADDED(1)
REMOVED(2)
UPDATED(3)
EVICTED(4)
EVICT_ALL(5)
CLEAR_ALL(6)
MERGED(7)uuid - The id of the member.numberOfAffectedEntries - The number of entries affected in the map.void Item(@Nullable Data item, String uuid, int eventType)
item - Map data item.uuid - The id of the server member.eventType - There are two possible values:
1: ADDED
2: REMOVEDvoid Topic(Data item, long publishTime, String uuid)
item - The published itempublishTime - The time the topic is published.uuid - The id of the server member.void PartitionLost(int partitionId,
int lostBackupCount,
@Nullable
Address source)
partitionId - The lost partition id.lostBackupCount - The number of lost backups for the partition. O: the owner, 1: first backup, 2: second backup ...source - The address of the node that dispatches the event.void DistributedObject(String name, String serviceName, String eventType)
name - Name of the DistributedObject instanceserviceName - Name of the service.eventType - Can be one of the two values:
"CREATED"
"DESTROYED"void CacheInvalidation(String name, @Nullable Data key, @Nullable String sourceUuid)
name - Name of the cache.key - The key for the entry.sourceUuid - The id of the server member.void CacheBatchInvalidation(String name, List<Data> keys, @Nullable List<String> sourceUuids)
name - Name of the cache.keys - The keys for the entries in batch invalidation.sourceUuids - The ids of the server members.void MapPartitionLost(int partitionId,
String uuid)
partitionId - The partition id that has been lost for the given mapuuid - The id of the server member.void Cache(int type,
Set<CacheEventData> keys,
int completionId)
type - The type of the event. Possible values for the event are:
CREATED(1): An event type indicating that the cache entry was created.
UPDATED(2): An event type indicating that the cache entry was updated, i.e. a previous mapping existed.
REMOVED(3): An event type indicating that the cache entry was removed.
EXPIRED(4): An event type indicating that the cache entry has expired.
EVICTED(5): An event type indicating that the cache entry has evicted.
INVALIDATED(6): An event type indicating that the cache entry has invalidated for near cache invalidation.
COMPLETED(7): An event type indicating that the cache operation has completed.
EXPIRATION_TIME_UPDATED(8): An event type indicating that the expiration time of cache record has been updatedkeys - The keys for the entries in the cache.completionId - User generated id which shall be received as a field of the cache event upon completion of
the request in the cluster.void QueryCacheSingle(QueryCacheEventData data)
data - Query cache map event data.void QueryCacheBatch(List<QueryCacheEventData> events, String source, int partitionId)
events - Array of query cache eventssource - Source of the event.partitionId - The partition id for the query cache.void CachePartitionLost(int partitionId,
String uuid)
Copyright © 2015 Hazelcast, Inc.. All Rights Reserved.