Class TXNGrpc.TXNFutureStub

  • Enclosing class:
    TXNGrpc

    public static final class TXNGrpc.TXNFutureStub
    extends io.grpc.stub.AbstractFutureStub<TXNGrpc.TXNFutureStub>
    
     Endpoint for transaction management.
     
    • Nested Class Summary

      • Nested classes/interfaces inherited from class io.grpc.stub.AbstractStub

        io.grpc.stub.AbstractStub.StubFactory<T extends io.grpc.stub.AbstractStub<T>>
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      com.google.common.util.concurrent.ListenableFuture<CottontailGrpc.TransactionId> begin​(com.google.protobuf.Empty request)
      Starts a new transaction.
      protected TXNGrpc.TXNFutureStub build​(io.grpc.Channel channel, io.grpc.CallOptions callOptions)  
      com.google.common.util.concurrent.ListenableFuture<com.google.protobuf.Empty> commit​(CottontailGrpc.TransactionId request)
      Performs a commit on a transaction.
      com.google.common.util.concurrent.ListenableFuture<com.google.protobuf.Empty> rollback​(CottontailGrpc.TransactionId request)
      Performs a rollback on a transaction and aborts it.
      • Methods inherited from class io.grpc.stub.AbstractFutureStub

        newStub, newStub
      • 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

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • begin

        public com.google.common.util.concurrent.ListenableFuture<CottontailGrpc.TransactionId> begin​(com.google.protobuf.Empty request)
         Starts a new transaction. 
         
      • commit

        public com.google.common.util.concurrent.ListenableFuture<com.google.protobuf.Empty> commit​(CottontailGrpc.TransactionId request)
         Performs a commit on a transaction. 
         
      • rollback

        public com.google.common.util.concurrent.ListenableFuture<com.google.protobuf.Empty> rollback​(CottontailGrpc.TransactionId request)
         Performs a rollback on a transaction and aborts it.