Package s2.v1alpha
Class StreamServiceGrpc.StreamServiceBlockingV2Stub
- java.lang.Object
-
- io.grpc.stub.AbstractStub<S>
-
- io.grpc.stub.AbstractBlockingStub<StreamServiceGrpc.StreamServiceBlockingV2Stub>
-
- s2.v1alpha.StreamServiceGrpc.StreamServiceBlockingV2Stub
-
- Enclosing class:
- StreamServiceGrpc
public static final class StreamServiceGrpc.StreamServiceBlockingV2Stub extends io.grpc.stub.AbstractBlockingStub<StreamServiceGrpc.StreamServiceBlockingV2Stub>
A stub to allow clients to do synchronous rpc calls to service StreamService.Operate on an S2 stream.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AppendResponse
append(AppendRequest request)
Append a batch of records to a stream.io.grpc.stub.BlockingClientCall<AppendSessionRequest,AppendSessionResponse>
appendSession()
Append batches of records to a stream continuously, while guaranteeing pipelined requests are processed in order.protected StreamServiceGrpc.StreamServiceBlockingV2Stub
build(io.grpc.Channel channel, io.grpc.CallOptions callOptions)
CheckTailResponse
checkTail(CheckTailRequest request)
Check the sequence number that will be assigned to the next record on a stream.ReadResponse
read(ReadRequest request)
Retrieve a batch of records from a stream.io.grpc.stub.BlockingClientCall<?,ReadSessionResponse>
readSession(ReadSessionRequest request)
Retrieve batches of records from a stream continuously.-
Methods inherited from class io.grpc.stub.AbstractStub
getCallOptions, getChannel, withCallCredentials, withChannel, withCompression, withDeadline, withDeadlineAfter, withDeadlineAfter, withExecutor, withInterceptors, withMaxInboundMessageSize, withMaxOutboundMessageSize, withOnReadyThreshold, withOption, withWaitForReady
-
-
-
-
Method Detail
-
build
protected StreamServiceGrpc.StreamServiceBlockingV2Stub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions)
- Specified by:
build
in classio.grpc.stub.AbstractStub<StreamServiceGrpc.StreamServiceBlockingV2Stub>
-
checkTail
public CheckTailResponse checkTail(CheckTailRequest request)
Check the sequence number that will be assigned to the next record on a stream.
-
append
public AppendResponse append(AppendRequest request)
Append a batch of records to a stream.
-
appendSession
@ExperimentalApi("https://github.com/grpc/grpc-java/issues/10918") public io.grpc.stub.BlockingClientCall<AppendSessionRequest,AppendSessionResponse> appendSession()
Append batches of records to a stream continuously, while guaranteeing pipelined requests are processed in order. If any request fails, the session is terminated.
-
read
public ReadResponse read(ReadRequest request)
Retrieve a batch of records from a stream.
-
readSession
@ExperimentalApi("https://github.com/grpc/grpc-java/issues/10918") public io.grpc.stub.BlockingClientCall<?,ReadSessionResponse> readSession(ReadSessionRequest request)
Retrieve batches of records from a stream continuously.
-
-