public class SerialBatchReplicationStrategy extends Object implements BatchReplicationStrategy
| Constructor and Description |
|---|
SerialBatchReplicationStrategy() |
| Modifier and Type | Method and Description |
|---|---|
void |
complete(com.hazelcast.nio.Address endpoint)
Releases the provided target endpoint as available for sending the next
event batch.
|
int |
getFirstPartitionId(com.hazelcast.nio.Address endpoint,
List<com.hazelcast.nio.Address> endpoints)
Returns the first partition ID of the events which should be sent to the
provided target endpoint.
|
com.hazelcast.nio.Address |
getNextEventBatchEndpoint(List<com.hazelcast.nio.Address> endpoints)
Returns the next available target endpoint from a provided list of
available target endpoints.
|
int |
getPartitionIdStep(com.hazelcast.nio.Address endpoint,
List<com.hazelcast.nio.Address> endpoints)
Returns the step between partition IDs of events which should be sent
to the provided target endpoint.
|
boolean |
hasOngoingReplication()
Returns true if there is an ongoing replication process.
|
String |
toString() |
public com.hazelcast.nio.Address getNextEventBatchEndpoint(List<com.hazelcast.nio.Address> endpoints)
BatchReplicationStrategyBatchReplicationStrategy.complete(Address) method with the returned address to mark
the endpoint as available again.getNextEventBatchEndpoint in interface BatchReplicationStrategyendpoints - the available target endpointspublic void complete(com.hazelcast.nio.Address endpoint)
BatchReplicationStrategycomplete in interface BatchReplicationStrategyendpoint - the endpoint to releasepublic int getFirstPartitionId(com.hazelcast.nio.Address endpoint,
List<com.hazelcast.nio.Address> endpoints)
BatchReplicationStrategygetFirstPartitionId in interface BatchReplicationStrategyendpoint - the target endpointendpoints - the list of available target endpointspublic int getPartitionIdStep(com.hazelcast.nio.Address endpoint,
List<com.hazelcast.nio.Address> endpoints)
BatchReplicationStrategygetPartitionIdStep in interface BatchReplicationStrategyendpoint - the target endpointendpoints - the list of available target endpointspublic boolean hasOngoingReplication()
BatchReplicationStrategyhasOngoingReplication in interface BatchReplicationStrategyCopyright © 2022 Hazelcast, Inc.. All Rights Reserved.