Package com.daml.ledger.rxjava
Class DamlLedgerClient
java.lang.Object
com.daml.ledger.rxjava.DamlLedgerClient
- All Implemented Interfaces:
LedgerClient
Deprecated.
A
LedgerClient implementation that connects to an existing Ledger and provides clients to
query it. To use the DamlLedgerClient:
- Create an instance of a
DamlLedgerClient.BuilderusingnewBuilder(String, int) - Specify an expected ledger identifier,
SslContext, and/or access token, depending on your needs - Invoke
DamlLedgerClient.Builder.build()to finalize and construct aDamlLedgerClient - Call the method
connect()to initialize the clients for that particular ledger - 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.
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Deprecated.voidconnect()Deprecated.Connects this instance of theDamlLedgerClientto the Ledger.Deprecated.Deprecated.Deprecated.Deprecated.Deprecated.Deprecated.Deprecated.Deprecated.Deprecated.static DamlLedgerClient.BuildernewBuilder(@NonNull io.grpc.netty.NettyChannelBuilder channelBuilder) Deprecated.Create a newDamlLedgerClient.Builderwith the given parametersstatic DamlLedgerClient.BuildernewBuilder(@NonNull String host, int port) Deprecated.Create a newDamlLedgerClient.Builderwith the given parameters
-
Method Details
-
newBuilder
Deprecated.Create a newDamlLedgerClient.Builderwith the given parametersUseful as a shortcut unless you have to customize the
NettyChannelBuilderbeyond the builder's capabilities -
newBuilder
public static DamlLedgerClient.Builder newBuilder(@NonNull io.grpc.netty.NettyChannelBuilder channelBuilder) Deprecated.Create a newDamlLedgerClient.Builderwith the given parametersUseful to customize the
NettyChannelBuilderbeyond the builder's capabilities, otherwisenewBuilder(String, int)is probably more suited for your use case -
connect
public void connect()Deprecated.Connects this instance of theDamlLedgerClientto the Ledger. -
getStateClient
Deprecated.- Specified by:
getStateClientin interfaceLedgerClient- Returns:
- The identifier of the Ledger connected to this
LedgerClient
-
getTransactionsClient
Deprecated.- Specified by:
getTransactionsClientin interfaceLedgerClient
-
getCommandClient
Deprecated.- Specified by:
getCommandClientin interfaceLedgerClient
-
getCommandCompletionClient
Deprecated.- Specified by:
getCommandCompletionClientin interfaceLedgerClient
-
getCommandSubmissionClient
Deprecated.- Specified by:
getCommandSubmissionClientin interfaceLedgerClient
-
getEventQueryClient
Deprecated.- Specified by:
getEventQueryClientin interfaceLedgerClient
-
getPackageClient
Deprecated.- Specified by:
getPackageClientin interfaceLedgerClient
-
getTimeClient
Deprecated.- Specified by:
getTimeClientin interfaceLedgerClient
-
getUserManagementClient
Deprecated.- Specified by:
getUserManagementClientin interfaceLedgerClient
-
close
Deprecated.- Throws:
Exception
-