Package io.atomix.api.runtime.lock.v1
Class LockGrpc.LockStub
java.lang.Object
io.grpc.stub.AbstractStub<LockGrpc.LockStub>
io.atomix.api.runtime.lock.v1.LockGrpc.LockStub
- Enclosing class:
LockGrpc
Lock is a service for a lock primitive
-
Method Summary
Modifier and TypeMethodDescriptionvoidclose(CloseRequest request, io.grpc.stub.StreamObserver<CloseResponse> responseObserver) Close closes the lockvoidcreate(CreateRequest request, io.grpc.stub.StreamObserver<CreateResponse> responseObserver) Create creates the lockvoidgetLock(GetLockRequest request, io.grpc.stub.StreamObserver<GetLockResponse> responseObserver) GetLock gets the lock statevoidlock(LockRequest request, io.grpc.stub.StreamObserver<LockResponse> responseObserver) Lock attempts to acquire the lockvoidunlock(UnlockRequest request, io.grpc.stub.StreamObserver<UnlockResponse> responseObserver) 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 void create(CreateRequest request, io.grpc.stub.StreamObserver<CreateResponse> responseObserver) Create creates the lock
-
close
public void close(CloseRequest request, io.grpc.stub.StreamObserver<CloseResponse> responseObserver) Close closes the lock
-
lock
Lock attempts to acquire the lock
-
unlock
public void unlock(UnlockRequest request, io.grpc.stub.StreamObserver<UnlockResponse> responseObserver) Unlock releases the lock
-
getLock
public void getLock(GetLockRequest request, io.grpc.stub.StreamObserver<GetLockResponse> responseObserver) GetLock gets the lock state
-