use of com.hazelcast.replicatedmap.impl.operation.ReplicationOperation in project hazelcast by hazelcast.
the class ReplicatedMapService method prepareReplicationOperation.
@Override
public Operation prepareReplicationOperation(PartitionReplicationEvent event) {
if (nodeEngine.getLocalMember().isLiteMember()) {
return null;
}
if (event.getReplicaIndex() > 0) {
return null;
}
PartitionContainer container = partitionContainers[event.getPartitionId()];
SerializationService serializationService = nodeEngine.getSerializationService();
ReplicationOperation operation = new ReplicationOperation(serializationService, container, event.getPartitionId());
operation.setService(this);
return operation.isEmpty() ? null : operation;
}
Aggregations