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);
}
Aggregations