Class DCBGrpc.DCBBlockingV2Stub
java.lang.Object
io.grpc.stub.AbstractStub<DCBGrpc.DCBBlockingV2Stub>
io.grpc.stub.AbstractBlockingStub<DCBGrpc.DCBBlockingV2Stub>
umadb.v1.DCBGrpc.DCBBlockingV2Stub
- Enclosing class:
DCBGrpc
public static final class DCBGrpc.DCBBlockingV2Stub
extends io.grpc.stub.AbstractBlockingStub<DCBGrpc.DCBBlockingV2Stub>
A stub to allow clients to do synchronous rpc calls to service DCB.
Service providing Event Store RPCs supporting DCB.
-
Nested Class Summary
Nested classes/interfaces inherited from class io.grpc.stub.AbstractStub
io.grpc.stub.AbstractStub.StubFactory<T> -
Method Summary
Modifier and TypeMethodDescriptionappend(Umadb.AppendRequest request) Appends new events to the store.protected DCBGrpc.DCBBlockingV2Stubbuild(io.grpc.Channel channel, io.grpc.CallOptions callOptions) getTrackingInfo(Umadb.TrackingRequest request) Gets the last record position for a named source.head(Umadb.HeadRequest request) Gets the position of the last recorded event in the store.io.grpc.stub.BlockingClientCall<?, Umadb.ReadResponse> read(Umadb.ReadRequest request) Provides a stream of batches of already-recorded events, up to a captured head position.io.grpc.stub.BlockingClientCall<?, Umadb.SubscribeResponse> subscribe(Umadb.SubscribeRequest request) Provides a stream of batches of already-recorded events, then continues as new events are recorded.Methods inherited from class io.grpc.stub.AbstractBlockingStub
newStub, newStubMethods inherited from class io.grpc.stub.AbstractStub
getCallOptions, getChannel, withCallCredentials, withChannel, withCompression, withDeadline, withDeadlineAfter, withDeadlineAfter, withExecutor, withInterceptors, withMaxInboundMessageSize, withMaxOutboundMessageSize, withOnReadyThreshold, withOption, withWaitForReady
-
Method Details
-
build
- Specified by:
buildin classio.grpc.stub.AbstractStub<DCBGrpc.DCBBlockingV2Stub>
-
read
@ExperimentalApi("https://github.com/grpc/grpc-java/issues/10918") public io.grpc.stub.BlockingClientCall<?, Umadb.ReadResponse> read(Umadb.ReadRequest request) Provides a stream of batches of already-recorded events, up to a captured head position.
-
subscribe
@ExperimentalApi("https://github.com/grpc/grpc-java/issues/10918") public io.grpc.stub.BlockingClientCall<?, Umadb.SubscribeResponse> subscribe(Umadb.SubscribeRequest request) Provides a stream of batches of already-recorded events, then continues as new events are recorded.
-
append
Appends new events to the store.
- Throws:
io.grpc.StatusException
-
head
Gets the position of the last recorded event in the store.
- Throws:
io.grpc.StatusException
-
getTrackingInfo
public Umadb.TrackingResponse getTrackingInfo(Umadb.TrackingRequest request) throws io.grpc.StatusException Gets the last record position for a named source.
- Throws:
io.grpc.StatusException
-