Module com.hedera.hashgraph.sdk
Package com.hedera.hashgraph.sdk.proto
Class UtilServiceGrpc.UtilServiceFutureStub
java.lang.Object
io.grpc.stub.AbstractStub<UtilServiceGrpc.UtilServiceFutureStub>
io.grpc.stub.AbstractFutureStub<UtilServiceGrpc.UtilServiceFutureStub>
com.hedera.hashgraph.sdk.proto.UtilServiceGrpc.UtilServiceFutureStub
- Enclosing class:
UtilServiceGrpc
public static final class UtilServiceGrpc.UtilServiceFutureStub
extends io.grpc.stub.AbstractFutureStub<UtilServiceGrpc.UtilServiceFutureStub>
A stub to allow clients to do ListenableFuture-style rpc calls to service UtilService.
The Utility Service provides a pseudo-random number generator. The single gRPC call defined for this service simply reports a single pseudo-random number in the transaction record. That value may either be a 32-bit integer within a requested range, or a 384-bit byte array. ### Block Stream Effects The requested value is reported exclusively in a `UtilPrngOutput` message.
-
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 TypeMethodDescriptioncom.google.common.util.concurrent.ListenableFuture<TransactionResponse> atomicBatch(Transaction request) Execute a batch of transactions atomically.protected UtilServiceGrpc.UtilServiceFutureStubbuild(io.grpc.Channel channel, io.grpc.CallOptions callOptions) com.google.common.util.concurrent.ListenableFuture<TransactionResponse> prng(Transaction request) Generate a pseudo-random value.Methods inherited from class io.grpc.stub.AbstractFutureStub
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 UtilServiceGrpc.UtilServiceFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) - Specified by:
buildin classio.grpc.stub.AbstractStub<UtilServiceGrpc.UtilServiceFutureStub>
-
prng
public com.google.common.util.concurrent.ListenableFuture<TransactionResponse> prng(Transaction request) Generate a pseudo-random value. <p> The request body MUST be a [UtilPrngTransactionBody](#proto.UtilPrngTransactionBody)
-
atomicBatch
public com.google.common.util.concurrent.ListenableFuture<TransactionResponse> atomicBatch(Transaction request) Execute a batch of transactions atomically. <p> All transactions in the batch will be executed in order, and if any transaction fails, the entire batch will fail. // TODO: Add more details about the batch transaction
-