Module com.hedera.hashgraph.sdk
Package com.hedera.hashgraph.sdk.proto
Class UtilServiceGrpc.UtilServiceStub
java.lang.Object
io.grpc.stub.AbstractStub<UtilServiceGrpc.UtilServiceStub>
io.grpc.stub.AbstractAsyncStub<UtilServiceGrpc.UtilServiceStub>
com.hedera.hashgraph.sdk.proto.UtilServiceGrpc.UtilServiceStub
- Enclosing class:
UtilServiceGrpc
public static final class UtilServiceGrpc.UtilServiceStub
extends io.grpc.stub.AbstractAsyncStub<UtilServiceGrpc.UtilServiceStub>
A stub to allow clients to do asynchronous 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 TypeMethodDescriptionvoidatomicBatch(Transaction request, io.grpc.stub.StreamObserver<TransactionResponse> responseObserver) Execute a batch of transactions atomically.protected UtilServiceGrpc.UtilServiceStubbuild(io.grpc.Channel channel, io.grpc.CallOptions callOptions) voidprng(Transaction request, io.grpc.stub.StreamObserver<TransactionResponse> responseObserver) Generate a pseudo-random value.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 UtilServiceGrpc.UtilServiceStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) - Specified by:
buildin classio.grpc.stub.AbstractStub<UtilServiceGrpc.UtilServiceStub>
-
prng
public void prng(Transaction request, io.grpc.stub.StreamObserver<TransactionResponse> responseObserver) Generate a pseudo-random value. <p> The request body MUST be a [UtilPrngTransactionBody](#proto.UtilPrngTransactionBody)
-
atomicBatch
public void atomicBatch(Transaction request, io.grpc.stub.StreamObserver<TransactionResponse> responseObserver) 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
-