Search in sources :

Example 1 with DestroyRaftGroupOp

use of com.hazelcast.cp.internal.operation.DestroyRaftGroupOp in project hazelcast by hazelcast.

the class RaftInvocationManager method destroy.

public InternalCompletableFuture<Object> destroy(CPGroupId groupId) {
    InternalCompletableFuture<Object> completedFuture = completeExceptionallyIfCPSubsystemNotAvailable();
    if (completedFuture != null) {
        return completedFuture;
    }
    Operation operation = new DestroyRaftGroupOp(groupId);
    Invocation invocation = new RaftInvocation(operationService.getInvocationContext(), raftInvocationContext, groupId, operation, invocationMaxRetryCount, invocationRetryPauseMillis, operationCallTimeout);
    return invocation.invoke();
}
Also used : DestroyRaftGroupOp(com.hazelcast.cp.internal.operation.DestroyRaftGroupOp) 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)

Aggregations

DestroyRaftGroupOp (com.hazelcast.cp.internal.operation.DestroyRaftGroupOp)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