Class CommandServiceGrpc.CommandServiceStub
- java.lang.Object
-
- io.grpc.stub.AbstractStub<S>
-
- io.grpc.stub.AbstractAsyncStub<CommandServiceGrpc.CommandServiceStub>
-
- io.axoniq.axonserver.grpc.command.CommandServiceGrpc.CommandServiceStub
-
- Enclosing class:
- CommandServiceGrpc
public static final class CommandServiceGrpc.CommandServiceStub extends io.grpc.stub.AbstractAsyncStub<CommandServiceGrpc.CommandServiceStub>
A stub to allow clients to do asynchronous rpc calls to service CommandService.The CommandService defines the gRPC requests necessary for subscribing command handlers, and dispatching commands.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected CommandServiceGrpc.CommandServiceStubbuild(io.grpc.Channel channel, io.grpc.CallOptions callOptions)voiddispatch(Command request, io.grpc.stub.StreamObserver<CommandResponse> responseObserver)Dispatches the given command, returning the result of command executionio.grpc.stub.StreamObserver<CommandProviderOutbound>openStream(io.grpc.stub.StreamObserver<CommandProviderInbound> responseObserver)Opens a stream allowing clients to register command handlers and receive commands.-
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 CommandServiceGrpc.CommandServiceStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions)
- Specified by:
buildin classio.grpc.stub.AbstractStub<CommandServiceGrpc.CommandServiceStub>
-
openStream
public io.grpc.stub.StreamObserver<CommandProviderOutbound> openStream(io.grpc.stub.StreamObserver<CommandProviderInbound> responseObserver)
Opens a stream allowing clients to register command handlers and receive commands.
-
dispatch
public void dispatch(Command request, io.grpc.stub.StreamObserver<CommandResponse> responseObserver)
Dispatches the given command, returning the result of command execution
-
-