Module com.hedera.hashgraph.sdk
Class NetworkServiceGrpc.NetworkServiceBlockingStub
java.lang.Object
io.grpc.stub.AbstractStub<NetworkServiceGrpc.NetworkServiceBlockingStub>
io.grpc.stub.AbstractBlockingStub<NetworkServiceGrpc.NetworkServiceBlockingStub>
com.hedera.hashgraph.sdk.proto.mirror.NetworkServiceGrpc.NetworkServiceBlockingStub
- Enclosing class:
NetworkServiceGrpc
public static final class NetworkServiceGrpc.NetworkServiceBlockingStub
extends io.grpc.stub.AbstractBlockingStub<NetworkServiceGrpc.NetworkServiceBlockingStub>
A stub to allow clients to do limited synchronous 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 TypeMethodDescriptionbuild(io.grpc.Channel channel, io.grpc.CallOptions callOptions) getNodes(AddressBookQuery request) Query for an address book and return its nodes.Methods inherited from class io.grpc.stub.AbstractBlockingStub
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.NetworkServiceBlockingStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) - Specified by:
buildin classio.grpc.stub.AbstractStub<NetworkServiceGrpc.NetworkServiceBlockingStub>
-
getNodes
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.
-