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.
  • Method Details

    • build

      protected DCBGrpc.DCBBlockingV2Stub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions)
      Specified by:
      build in class io.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

      public Umadb.AppendResponse append(Umadb.AppendRequest request) throws io.grpc.StatusException
      Appends new events to the store.
      
      Throws:
      io.grpc.StatusException
    • head

      public Umadb.HeadResponse head(Umadb.HeadRequest request) throws io.grpc.StatusException
      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