Class LockGrpc.LockStub

java.lang.Object
io.grpc.stub.AbstractStub<LockGrpc.LockStub>
io.atomix.api.runtime.lock.v1.LockGrpc.LockStub
Enclosing class:
LockGrpc

public static final class LockGrpc.LockStub extends io.grpc.stub.AbstractStub<LockGrpc.LockStub>
 Lock is a service for a lock primitive
 
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    close(CloseRequest request, io.grpc.stub.StreamObserver<CloseResponse> responseObserver)
    Close closes the lock
    void
    create(CreateRequest request, io.grpc.stub.StreamObserver<CreateResponse> responseObserver)
    Create creates the lock
    void
    getLock(GetLockRequest request, io.grpc.stub.StreamObserver<GetLockResponse> responseObserver)
    GetLock gets the lock state
    void
    lock(LockRequest request, io.grpc.stub.StreamObserver<LockResponse> responseObserver)
    Lock attempts to acquire the lock
    void
    unlock(UnlockRequest request, io.grpc.stub.StreamObserver<UnlockResponse> responseObserver)
    Unlock releases the lock

    Methods inherited from class io.grpc.stub.AbstractStub

    getCallOptions, getChannel, withCallCredentials, withChannel, withCompression, withDeadline, withDeadlineAfter, withExecutor, withInterceptors, withMaxInboundMessageSize, withMaxOutboundMessageSize, withOption, withWaitForReady

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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

      public void lock(LockRequest request, io.grpc.stub.StreamObserver<LockResponse> responseObserver)
       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