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.WanBatchReplication| Constructor and Description |
|---|
BatchWanReplicationEvent() |
BatchWanReplicationEvent(boolean snapshotEnabled) |
| Modifier and Type | Method and Description |
|---|---|
void |
addEvent(com.hazelcast.wan.WanReplicationEvent event)
Adds a WAN event to the batch.
|
List<com.hazelcast.wan.WanReplicationEvent> |
getCoalescedEvents()
Returns all events which were coalesced by other newer events in
getEvents(). |
Collection<com.hazelcast.wan.WanReplicationEvent> |
getEvents()
Returns the WAN events in this batch
|
int |
getFactoryId() |
int |
getId() |
int |
getPrimaryEventCount()
Returns the number of non-sync WAN events added to this batch.
|
int |
getTotalEntryCount()
Returns the total number of WAN events in this batch, including WAN sync
events and merkle tree node entries.
|
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)
event - a WAN replication eventWanReplicationProperties.SNAPSHOT_ENABLEDpublic int getPrimaryEventCount()
getEvents() if
snapshotEnabled is true.public int getTotalEntryCount()
getEvents() and the getPrimaryEventCount().public List<com.hazelcast.wan.WanReplicationEvent> getCoalescedEvents()
getEvents().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 © 2022 Hazelcast, Inc.. All Rights Reserved.