Package org.vitrivr.cottontail.grpc
Class TXNGrpc.TXNBlockingStub
java.lang.Object
io.grpc.stub.AbstractStub<S>
io.grpc.stub.AbstractBlockingStub<TXNGrpc.TXNBlockingStub>
org.vitrivr.cottontail.grpc.TXNGrpc.TXNBlockingStub
- Enclosing class:
- TXNGrpc
public static final class TXNGrpc.TXNBlockingStub
extends io.grpc.stub.AbstractBlockingStub<TXNGrpc.TXNBlockingStub>
A stub to allow clients to do synchronous rpc calls to service TXN.
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>> -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateTXNBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) -
Method Summary
Modifier and TypeMethodDescriptionbegin(CottontailGrpc.BeginTransaction request) Starts a new transaction.protected TXNGrpc.TXNBlockingStubbuild(io.grpc.Channel channel, io.grpc.CallOptions callOptions) com.google.protobuf.Emptycommit(CottontailGrpc.RequestMetadata request) Performs a commit on a transaction.com.google.protobuf.Emptykill(CottontailGrpc.RequestMetadata request) Kills and performs a rollback on an ongoing transaction.listLocks(com.google.protobuf.Empty request) Lists all active locks on database objects.listTransactions(com.google.protobuf.Empty request) Lists all active transactions.com.google.protobuf.Emptyrollback(CottontailGrpc.RequestMetadata request) Performs a rollback on a transaction and aborts it.Methods inherited from class io.grpc.stub.AbstractBlockingStub
newStub, newStubMethods inherited from class io.grpc.stub.AbstractStub
getCallOptions, getChannel, withCallCredentials, withChannel, withCompression, withDeadline, withDeadlineAfter, withExecutor, withInterceptors, withMaxInboundMessageSize, withMaxOutboundMessageSize, withOption, withWaitForReady
-
Constructor Details
-
TXNBlockingStub
private TXNBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions)
-
-
Method Details
-
build
- Specified by:
buildin classio.grpc.stub.AbstractStub<TXNGrpc.TXNBlockingStub>
-
begin
Starts a new transaction.
-
commit
Performs a commit on a transaction. This method blocks if a query is currently executed.
-
rollback
Performs a rollback on a transaction and aborts it. This method blocks if a query is currently executed.
-
kill
Kills and performs a rollback on an ongoing transaction. This method can even be used when a query is being executed.
-
listTransactions
public Iterator<CottontailGrpc.QueryResponseMessage> listTransactions(com.google.protobuf.Empty request) Lists all active transactions.
-
listLocks
Lists all active locks on database objects.
-