Module com.hedera.hashgraph.sdk
Class NetworkServiceGrpc.NetworkServiceBlockingV2Stub
java.lang.Object
io.grpc.stub.AbstractStub<NetworkServiceGrpc.NetworkServiceBlockingV2Stub>
io.grpc.stub.AbstractBlockingStub<NetworkServiceGrpc.NetworkServiceBlockingV2Stub>
com.hedera.hashgraph.sdk.proto.mirror.NetworkServiceGrpc.NetworkServiceBlockingV2Stub
- Enclosing class:
NetworkServiceGrpc
public static final class NetworkServiceGrpc.NetworkServiceBlockingV2Stub
extends io.grpc.stub.AbstractBlockingStub<NetworkServiceGrpc.NetworkServiceBlockingV2Stub>
A stub to allow clients to do 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) io.grpc.stub.BlockingClientCall<?, NodeAddress> 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.NetworkServiceBlockingV2Stub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) - Specified by:
buildin classio.grpc.stub.AbstractStub<NetworkServiceGrpc.NetworkServiceBlockingV2Stub>
-
getNodes
@ExperimentalApi("https://github.com/grpc/grpc-java/issues/10918") public io.grpc.stub.BlockingClientCall<?,NodeAddress> getNodes(AddressBookQuery request) 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.
-