Package io.atomix.api.runtime.lock.v1
Class LockGrpc.LockFutureStub
java.lang.Object
io.grpc.stub.AbstractStub<LockGrpc.LockFutureStub>
io.atomix.api.runtime.lock.v1.LockGrpc.LockFutureStub
- Enclosing class:
LockGrpc
public static final class LockGrpc.LockFutureStub
extends io.grpc.stub.AbstractStub<LockGrpc.LockFutureStub>
Lock is a service for a lock primitive
-
Method Summary
Modifier and TypeMethodDescriptioncom.google.common.util.concurrent.ListenableFuture<CloseResponse>close(CloseRequest request) Close closes the lockcom.google.common.util.concurrent.ListenableFuture<CreateResponse>create(CreateRequest request) Create creates the lockcom.google.common.util.concurrent.ListenableFuture<GetLockResponse>getLock(GetLockRequest request) GetLock gets the lock statecom.google.common.util.concurrent.ListenableFuture<LockResponse>lock(LockRequest request) Lock attempts to acquire the lockcom.google.common.util.concurrent.ListenableFuture<UnlockResponse>unlock(UnlockRequest request) Unlock releases the lockMethods inherited from class io.grpc.stub.AbstractStub
getCallOptions, getChannel, withCallCredentials, withChannel, withCompression, withDeadline, withDeadlineAfter, withExecutor, withInterceptors, withMaxInboundMessageSize, withMaxOutboundMessageSize, withOption, withWaitForReady
-
Method Details
-
create
public com.google.common.util.concurrent.ListenableFuture<CreateResponse> create(CreateRequest request) Create creates the lock
-
close
public com.google.common.util.concurrent.ListenableFuture<CloseResponse> close(CloseRequest request) Close closes the lock
-
lock
Lock attempts to acquire the lock
-
unlock
public com.google.common.util.concurrent.ListenableFuture<UnlockResponse> unlock(UnlockRequest request) Unlock releases the lock
-
getLock
public com.google.common.util.concurrent.ListenableFuture<GetLockResponse> getLock(GetLockRequest request) GetLock gets the lock state
-