public class CacheEventSet extends Object implements IdentifiedDataSerializable
Internal Set wrapper of CacheEventData
items used during publishing and dispatching events.
CacheEntryListener
. This implementation serves that purpose
as a CacheEventData
set.Constructor and Description |
---|
CacheEventSet() |
CacheEventSet(CacheEventType eventType,
int completionId) |
CacheEventSet(CacheEventType eventType,
Set<CacheEventData> events) |
CacheEventSet(CacheEventType eventType,
Set<CacheEventData> events,
int completionId) |
Modifier and Type | Method and Description |
---|---|
void |
addEventData(CacheEventData cacheEventData)
Helper method for adding multiple CacheEventData into this Set
|
int |
getCompletionId() |
Set<CacheEventData> |
getEvents() |
CacheEventType |
getEventType() |
int |
getFactoryId()
Returns DataSerializableFactory factory id for this class.
|
int |
getId()
Returns type identifier for this class.
|
void |
readData(ObjectDataInput in)
Reads fields from the input stream
|
void |
writeData(ObjectDataOutput out)
Writes object fields to output stream
|
public CacheEventSet()
public CacheEventSet(CacheEventType eventType, Set<CacheEventData> events)
public CacheEventSet(CacheEventType eventType, Set<CacheEventData> events, int completionId)
public CacheEventSet(CacheEventType eventType, int completionId)
public Set<CacheEventData> getEvents()
public CacheEventType getEventType()
public int getCompletionId()
public void addEventData(CacheEventData cacheEventData)
cacheEventData
- event data representing a single event's data.CacheEventData
public void writeData(ObjectDataOutput out) throws IOException
DataSerializable
writeData
in interface DataSerializable
out
- outputIOException
public void readData(ObjectDataInput in) throws IOException
DataSerializable
readData
in interface DataSerializable
in
- inputIOException
public int getId()
IdentifiedDataSerializable
getId
in interface IdentifiedDataSerializable
public int getFactoryId()
IdentifiedDataSerializable
getFactoryId
in interface IdentifiedDataSerializable
Copyright © 2016 Hazelcast, Inc.. All Rights Reserved.