Class TXNGrpc.TXNBlockingStub

  • Enclosing class:
    TXNGrpc

    public static final class TXNGrpc.TXNBlockingStub
    extends io.grpc.stub.AbstractBlockingStub<TXNGrpc.TXNBlockingStub>
    
     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
      CottontailGrpc.Metadata begin​(com.google.protobuf.Empty request)
      Starts a new transaction.
      protected TXNGrpc.TXNBlockingStub build​(io.grpc.Channel channel, io.grpc.CallOptions callOptions)  
      com.google.protobuf.Empty commit​(CottontailGrpc.Metadata request)
      Performs a commit on a transaction.
      com.google.protobuf.Empty kill​(CottontailGrpc.Metadata request)
      Kills and performs a rollback on an ongoing transaction.
      java.util.Iterator<CottontailGrpc.QueryResponseMessage> listLocks​(com.google.protobuf.Empty request)
      Lists all active locks on database objects.
      java.util.Iterator<CottontailGrpc.QueryResponseMessage> listTransactions​(com.google.protobuf.Empty request)
      Lists all active transactions.
      com.google.protobuf.Empty rollback​(CottontailGrpc.Metadata request)
      Performs a rollback on a transaction and aborts it.
      • Methods inherited from class io.grpc.stub.AbstractBlockingStub

        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

      • commit

        public com.google.protobuf.Empty commit​(CottontailGrpc.Metadata request)
         Performs a commit on a transaction. This method blocks if a query is currently executed. 
         
      • rollback

        public com.google.protobuf.Empty rollback​(CottontailGrpc.Metadata request)
         Performs a rollback on a transaction and aborts it. This method blocks if a query is currently executed. 
         
      • kill

        public com.google.protobuf.Empty kill​(CottontailGrpc.Metadata request)
         Kills and performs a rollback on an ongoing transaction. This method can even be used when a query is being executed.