Interface UtilServiceGrpc.AsyncService

All Known Implementing Classes:
UtilServiceGrpc.UtilServiceImplBase
Enclosing class:
UtilServiceGrpc

public static interface UtilServiceGrpc.AsyncService

 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.
 
  • Method Summary

    Modifier and Type
    Method
    Description
    default void
    atomicBatch(Transaction request, io.grpc.stub.StreamObserver<TransactionResponse> responseObserver)
    Execute a batch of transactions atomically.
    default void
    prng(Transaction request, io.grpc.stub.StreamObserver<TransactionResponse> responseObserver)
    Generate a pseudo-random value.
  • Method Details

    • prng

      default 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

      default 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