public class LocalCacheWideEventData extends Object implements EventData
EventData
which is used only for the subscriber end of a query cache
and only for query cache wide events like clearing all items together.
For this reason, it is not sent over the wire and is used locally to query cache.
Throws UnsupportedOperationException
if one tries to serialize an instance of this class.Constructor and Description |
---|
LocalCacheWideEventData(String source,
int eventType,
int numberOfEntriesAffected) |
Modifier and Type | Method and Description |
---|---|
Address |
getCaller() |
int |
getEventType() |
String |
getMapName() |
int |
getNumberOfEntriesAffected() |
String |
getSource() |
void |
readData(ObjectDataInput in)
Reads fields from the input stream
|
String |
toString() |
void |
writeData(ObjectDataOutput out)
Writes object fields to output stream
|
public LocalCacheWideEventData(String source, int eventType, int numberOfEntriesAffected)
public int getNumberOfEntriesAffected()
public String getMapName()
getMapName
in interface EventData
public int getEventType()
getEventType
in interface EventData
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
Copyright © 2018 Hazelcast, Inc.. All Rights Reserved.