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 EventDatapublic int getEventType()
getEventType in interface EventDatapublic void writeData(ObjectDataOutput out) throws IOException
DataSerializablewriteData in interface DataSerializableout - outputIOException - if an I/O error occurs. In particular,
an IOException may be thrown if the
output stream has been closed.public void readData(ObjectDataInput in) throws IOException
DataSerializablereadData in interface DataSerializablein - inputIOException - if an I/O error occurs. In particular,
an IOException may be thrown if the
input stream has been closed.Copyright © 2018 Hazelcast, Inc.. All Rights Reserved.