Class PersistentStreamServiceGrpc.PersistentStreamServiceBlockingV2Stub
- java.lang.Object
-
- io.grpc.stub.AbstractStub<S>
-
- io.grpc.stub.AbstractBlockingStub<PersistentStreamServiceGrpc.PersistentStreamServiceBlockingV2Stub>
-
- io.axoniq.axonserver.grpc.streams.PersistentStreamServiceGrpc.PersistentStreamServiceBlockingV2Stub
-
- Enclosing class:
- PersistentStreamServiceGrpc
public static final class PersistentStreamServiceGrpc.PersistentStreamServiceBlockingV2Stub extends io.grpc.stub.AbstractBlockingStub<PersistentStreamServiceGrpc.PersistentStreamServiceBlockingV2Stub>
A stub to allow clients to do synchronous rpc calls to service PersistentStreamService.Service providing operations for persistent event streams, event streams where Axon Server keeps track of the progress. All operations require a header (AxonIQ-Context) to be passed with each request to define the context.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected PersistentStreamServiceGrpc.PersistentStreamServiceBlockingV2Stubbuild(io.grpc.Channel channel, io.grpc.CallOptions callOptions)CreateStreamResponsecreateStream(CreateStreamRequest request)Creates a persistent stream if it does not exist.io.grpc.stub.BlockingClientCall<?,com.google.protobuf.Empty>deleteStream(DeleteStreamRequest request)Deletes a persistent event stream.io.grpc.stub.BlockingClientCall<?,StreamStatus>listStreams(ListStreamsRequest request)Returns a list of all persistent event streams defined (for the context).io.grpc.stub.BlockingClientCall<StreamRequest,StreamSignal>openStream()Open a persistent event stream connection from a client.io.grpc.stub.BlockingClientCall<?,com.google.protobuf.Empty>resetStream(ResetStreamRequest request)Resets the position of a persistent stream.io.grpc.stub.BlockingClientCall<?,com.google.protobuf.Empty>updateStream(UpdateStreamRequest request)Change properties of a persistent event stream.-
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 PersistentStreamServiceGrpc.PersistentStreamServiceBlockingV2Stub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions)
- Specified by:
buildin classio.grpc.stub.AbstractStub<PersistentStreamServiceGrpc.PersistentStreamServiceBlockingV2Stub>
-
createStream
public CreateStreamResponse createStream(CreateStreamRequest request) throws io.grpc.StatusException
Creates a persistent stream if it does not exist.
- Throws:
io.grpc.StatusException
-
openStream
@ExperimentalApi("https://github.com/grpc/grpc-java/issues/10918") public io.grpc.stub.BlockingClientCall<StreamRequest,StreamSignal> openStream()Open a persistent event stream connection from a client. Creates the stream if it does not exist.
-
deleteStream
@ExperimentalApi("https://github.com/grpc/grpc-java/issues/10918") public io.grpc.stub.BlockingClientCall<?,com.google.protobuf.Empty> deleteStream(DeleteStreamRequest request)Deletes a persistent event stream. All existing connections to the stream are closed.
-
updateStream
@ExperimentalApi("https://github.com/grpc/grpc-java/issues/10918") public io.grpc.stub.BlockingClientCall<?,com.google.protobuf.Empty> updateStream(UpdateStreamRequest request)Change properties of a persistent event stream.
-
listStreams
@ExperimentalApi("https://github.com/grpc/grpc-java/issues/10918") public io.grpc.stub.BlockingClientCall<?,StreamStatus> listStreams(ListStreamsRequest request)Returns a list of all persistent event streams defined (for the context). For each event stream it returns the progress per segment.
-
resetStream
@ExperimentalApi("https://github.com/grpc/grpc-java/issues/10918") public io.grpc.stub.BlockingClientCall<?,com.google.protobuf.Empty> resetStream(ResetStreamRequest request)Resets the position of a persistent stream.
-
-