Module com.hedera.hashgraph.sdk
Class NetworkServiceGrpc.NetworkServiceStub
java.lang.Object
io.grpc.stub.AbstractStub<NetworkServiceGrpc.NetworkServiceStub>
io.grpc.stub.AbstractAsyncStub<NetworkServiceGrpc.NetworkServiceStub>
com.hedera.hashgraph.sdk.proto.mirror.NetworkServiceGrpc.NetworkServiceStub
- Enclosing class:
NetworkServiceGrpc
public static final class NetworkServiceGrpc.NetworkServiceStub
extends io.grpc.stub.AbstractAsyncStub<NetworkServiceGrpc.NetworkServiceStub>
A stub to allow clients to do asynchronous rpc calls to service NetworkService.
Provides cross network APIs like address book queries
-
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 Summary
Modifier and TypeMethodDescriptionprotected NetworkServiceGrpc.NetworkServiceStubbuild(io.grpc.Channel channel, io.grpc.CallOptions callOptions) voidgetNodes(AddressBookQuery request, io.grpc.stub.StreamObserver<NodeAddress> responseObserver) Query for an address book and return its nodes.Methods inherited from class io.grpc.stub.AbstractAsyncStub
newStub, newStubMethods inherited from class io.grpc.stub.AbstractStub
getCallOptions, getChannel, withCallCredentials, withChannel, withCompression, withDeadline, withDeadlineAfter, withDeadlineAfter, withExecutor, withInterceptors, withMaxInboundMessageSize, withMaxOutboundMessageSize, withOnReadyThreshold, withOption, withWaitForReady
-
Method Details
-
build
protected NetworkServiceGrpc.NetworkServiceStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) - Specified by:
buildin classio.grpc.stub.AbstractStub<NetworkServiceGrpc.NetworkServiceStub>
-
getNodes
public void getNodes(AddressBookQuery request, io.grpc.stub.StreamObserver<NodeAddress> responseObserver) Query for an address book and return its nodes. The nodes are returned in ascending order by node ID. The response is not guaranteed to be a byte-for-byte equivalent to the NodeAddress in the Hedera file on the network since it is reconstructed from a normalized database table.
-