Class PersistentStreamServiceGrpc.PersistentStreamServiceStub

  • Enclosing class:
    PersistentStreamServiceGrpc

    public static final class PersistentStreamServiceGrpc.PersistentStreamServiceStub
    extends io.grpc.stub.AbstractAsyncStub<PersistentStreamServiceGrpc.PersistentStreamServiceStub>
    A stub to allow clients to do asynchronous 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.
     
    • 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>>
    • Method Detail

      • openStream

        public io.grpc.stub.StreamObserver<StreamRequest> openStream​(io.grpc.stub.StreamObserver<StreamSignal> responseObserver)
         Open a persistent event stream connection from a client. Creates the stream if it does not exist. 
         
      • deleteStream

        public void deleteStream​(DeleteStreamRequest request,
                                 io.grpc.stub.StreamObserver<com.google.protobuf.Empty> responseObserver)
         Deletes a persistent event stream. All existing connections to the stream are closed. 
         
      • updateStream

        public void updateStream​(UpdateStreamRequest request,
                                 io.grpc.stub.StreamObserver<com.google.protobuf.Empty> responseObserver)
         Change properties of a persistent event stream. 
         
      • listStreams

        public void listStreams​(ListStreamsRequest request,
                                io.grpc.stub.StreamObserver<StreamStatus> responseObserver)
         Returns a list of all persistent event streams defined (for the context). For each event stream it returns
        the progress per segment.  
         
      • resetStream

        public void resetStream​(ResetStreamRequest request,
                                io.grpc.stub.StreamObserver<com.google.protobuf.Empty> responseObserver)
         Resets the position of a persistent stream.