Search in sources :

Example 1 with UnsafeRaftReplicateOp

use of com.hazelcast.cp.internal.operation.unsafe.UnsafeRaftReplicateOp in project hazelcast by hazelcast.

the class RaftInvocationManager method invoke.

public <T> InternalCompletableFuture<T> invoke(CPGroupId groupId, RaftOp raftOp, boolean deserializeResponse) {
    if (cpSubsystemEnabled) {
        Operation operation = new DefaultRaftReplicateOp(groupId, raftOp);
        Invocation invocation = new RaftInvocation(operationService.getInvocationContext(), raftInvocationContext, groupId, operation, invocationMaxRetryCount, invocationRetryPauseMillis, operationCallTimeout, deserializeResponse);
        return invocation.invoke();
    }
    return invokeOnPartition(new UnsafeRaftReplicateOp(groupId, raftOp), deserializeResponse);
}
Also used : RaftInvocation(com.hazelcast.spi.impl.operationservice.impl.RaftInvocation) Invocation(com.hazelcast.spi.impl.operationservice.impl.Invocation) RaftInvocation(com.hazelcast.spi.impl.operationservice.impl.RaftInvocation) Operation(com.hazelcast.spi.impl.operationservice.Operation) DefaultRaftReplicateOp(com.hazelcast.cp.internal.operation.DefaultRaftReplicateOp) UnsafeRaftReplicateOp(com.hazelcast.cp.internal.operation.unsafe.UnsafeRaftReplicateOp)

Aggregations

DefaultRaftReplicateOp (com.hazelcast.cp.internal.operation.DefaultRaftReplicateOp)1 UnsafeRaftReplicateOp (com.hazelcast.cp.internal.operation.unsafe.UnsafeRaftReplicateOp)1 Operation (com.hazelcast.spi.impl.operationservice.Operation)1 Invocation (com.hazelcast.spi.impl.operationservice.impl.Invocation)1 RaftInvocation (com.hazelcast.spi.impl.operationservice.impl.RaftInvocation)1