Class CommandServiceGrpc.CommandServiceBlockingV2Stub
- java.lang.Object
-
- io.grpc.stub.AbstractStub<S>
-
- io.grpc.stub.AbstractBlockingStub<CommandServiceGrpc.CommandServiceBlockingV2Stub>
-
- io.axoniq.axonserver.grpc.command.CommandServiceGrpc.CommandServiceBlockingV2Stub
-
- Enclosing class:
- CommandServiceGrpc
public static final class CommandServiceGrpc.CommandServiceBlockingV2Stub extends io.grpc.stub.AbstractBlockingStub<CommandServiceGrpc.CommandServiceBlockingV2Stub>
A stub to allow clients to do synchronous 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.CommandServiceBlockingV2Stubbuild(io.grpc.Channel channel, io.grpc.CallOptions callOptions)CommandResponsedispatch(Command request)Dispatches the given command, returning the result of command executionio.grpc.stub.BlockingClientCall<CommandProviderOutbound,CommandProviderInbound>openStream()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.CommandServiceBlockingV2Stub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions)
- Specified by:
buildin classio.grpc.stub.AbstractStub<CommandServiceGrpc.CommandServiceBlockingV2Stub>
-
openStream
@ExperimentalApi("https://github.com/grpc/grpc-java/issues/10918") public io.grpc.stub.BlockingClientCall<CommandProviderOutbound,CommandProviderInbound> openStream()Opens a stream allowing clients to register command handlers and receive commands.
-
dispatch
public CommandResponse dispatch(Command request) throws io.grpc.StatusException
Dispatches the given command, returning the result of command execution
- Throws:
io.grpc.StatusException
-
-