Class DamlLedgerClient

java.lang.Object
com.daml.ledger.rxjava.DamlLedgerClient
All Implemented Interfaces:
LedgerClient

public final class DamlLedgerClient extends Object implements LedgerClient
A LedgerClient implementation that connects to an existing Ledger and provides clients to query it. To use the DamlLedgerClient:
  1. Create an instance of a DamlLedgerClient.Builder using newBuilder(String, int)
  2. Specify an expected ledger identifier, SslContext, and/or access token, depending on your needs
  3. Invoke DamlLedgerClient.Builder.build() to finalize and construct a DamlLedgerClient
  4. Call the method connect() to initialize the clients for that particular ledger
  5. Retrieve one of the clients by using a getter, e.g. getStateClient()

Alternatively to newBuilder(String, int), you can use newBuilder(NettyChannelBuilder) to make sure you can specify additional properties for the channel you're building, such as the maximum inbound message size.

For information on how to set up an SslContext object for mutual authentication please refer to the section on security in the grpc-java documentation.