public interface BatchReplicationStrategy
| 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.
|
com.hazelcast.nio.Address getNextEventBatchEndpoint(List<com.hazelcast.nio.Address> endpoints)
complete(Address) method with the returned address to mark
the endpoint as available again.endpoints - the available target endpointsvoid complete(com.hazelcast.nio.Address endpoint)
endpoint - the endpoint to releaseint getFirstPartitionId(com.hazelcast.nio.Address endpoint,
List<com.hazelcast.nio.Address> endpoints)
endpoint - the target endpointendpoints - the list of available target endpointsint getPartitionIdStep(com.hazelcast.nio.Address endpoint,
List<com.hazelcast.nio.Address> endpoints)
endpoint - the target endpointendpoints - the list of available target endpointsboolean hasOngoingReplication()
Copyright © 2020 Hazelcast, Inc.. All Rights Reserved.