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 Type
    Method
    Description
    com.google.common.util.concurrent.ListenableFuture<CloseResponse>
    Close closes the lock
    com.google.common.util.concurrent.ListenableFuture<CreateResponse>
    Create creates the lock
    com.google.common.util.concurrent.ListenableFuture<GetLockResponse>
    GetLock gets the lock state
    com.google.common.util.concurrent.ListenableFuture<LockResponse>
    lock(LockRequest request)
    Lock attempts to acquire the lock
    com.google.common.util.concurrent.ListenableFuture<UnlockResponse>
    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 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

      public com.google.common.util.concurrent.ListenableFuture<LockResponse> lock(LockRequest request)
       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