public class BatchWanReplicationEvent extends Object implements com.hazelcast.nio.serialization.IdentifiedDataSerializable
WanReplicationEvent objects.
If WanReplicationProperties.SNAPSHOT_ENABLED is true, only the
latest event for a key will be sent.| Constructor and Description |
|---|
BatchWanReplicationEvent() |
BatchWanReplicationEvent(boolean snapshotEnabled) |
| Modifier and Type | Method and Description |
|---|---|
void |
addEvent(com.hazelcast.wan.WanReplicationEvent event) |
int |
getAddedEventCount()
Returns the number of events added to this batch.
|
Collection<com.hazelcast.wan.WanReplicationEvent> |
getEvents()
Returns the WAN events in this batch
|
int |
getFactoryId() |
int |
getId() |
void |
readData(com.hazelcast.nio.ObjectDataInput in) |
void |
writeData(com.hazelcast.nio.ObjectDataOutput out) |
public BatchWanReplicationEvent()
public BatchWanReplicationEvent(boolean snapshotEnabled)
public void addEvent(com.hazelcast.wan.WanReplicationEvent event)
public int getAddedEventCount()
snapshotEnabled is true.public Collection<com.hazelcast.wan.WanReplicationEvent> getEvents()
public int getFactoryId()
getFactoryId in interface com.hazelcast.nio.serialization.IdentifiedDataSerializablepublic int getId()
getId in interface com.hazelcast.nio.serialization.IdentifiedDataSerializablepublic void writeData(com.hazelcast.nio.ObjectDataOutput out)
throws IOException
writeData in interface com.hazelcast.nio.serialization.DataSerializableIOExceptionpublic void readData(com.hazelcast.nio.ObjectDataInput in)
throws IOException
readData in interface com.hazelcast.nio.serialization.DataSerializableIOExceptionCopyright © 2020 Hazelcast, Inc.. All Rights Reserved.