public static final class StateGrpc.StateStub extends io.grpc.stub.AbstractAsyncStub<StateGrpc.StateStub>
State service is a always running service that exposes the current state of the wallet and RPC server.
Modifier and Type | Method and Description |
---|---|
protected StateGrpc.StateStub |
build(io.grpc.Channel channel,
io.grpc.CallOptions callOptions) |
void |
getState(Stateservice.GetStateRequest request,
io.grpc.stub.StreamObserver<Stateservice.GetStateResponse> responseObserver)
GetState returns the current wallet state without streaming further
changes.
|
void |
subscribeState(Stateservice.SubscribeStateRequest request,
io.grpc.stub.StreamObserver<Stateservice.SubscribeStateResponse> responseObserver)
SubscribeState subscribes to the state of the wallet.
|
protected StateGrpc.StateStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions)
build
in class io.grpc.stub.AbstractStub<StateGrpc.StateStub>
public void subscribeState(Stateservice.SubscribeStateRequest request, io.grpc.stub.StreamObserver<Stateservice.SubscribeStateResponse> responseObserver)
SubscribeState subscribes to the state of the wallet. The current wallet state will always be delivered immediately.
public void getState(Stateservice.GetStateRequest request, io.grpc.stub.StreamObserver<Stateservice.GetStateResponse> responseObserver)
GetState returns the current wallet state without streaming further changes.