start
Logs in to the target server and returns an active connection. The returned connection is a java.io.Closeable and can be used with a try-with-resources statement. If you don't use that, you should use the RPCConnection.notifyServerAndClose or RPCConnection.forceClose methods to dispose of the connection object when done.
Parameters
The username to authenticate with.
The password to authenticate with.
a GracefulReconnect class containing callback logic when the RPC is dis/reconnected unexpectedly
Throws
if the server version is too low or if the server isn't reachable within a reasonable timeout.
Logs in to the target server and returns an active connection. The returned connection is a java.io.Closeable and can be used with a try-with-resources statement. If you don't use that, you should use the RPCConnection.notifyServerAndClose or RPCConnection.forceClose methods to dispose of the connection object when done.
Parameters
The username to authenticate with.
The password to authenticate with.
in case of multi-identity RPC endpoint specific legal identity to which the calls must be addressed.
a GracefulReconnect class containing callback logic when the RPC is dis/reconnected unexpectedly
Throws
if the server version is too low or if the server isn't reachable within a reasonable timeout.
Logs in to the target server and returns an active connection. The returned connection is a java.io.Closeable and can be used with a try-with-resources statement. If you don't use that, you should use the RPCConnection.notifyServerAndClose or RPCConnection.forceClose methods to dispose of the connection object when done.
Parameters
The username to authenticate with.
The password to authenticate with.
external Trace for correlation.
the actor on behalf of which all the invocations will be made.
a GracefulReconnect class containing callback logic when the RPC is dis/reconnected unexpectedly
Throws
if the server version is too low or if the server isn't reachable within a reasonable timeout.
Logs in to the target server and returns an active connection. The returned connection is a java.io.Closeable and can be used with a try-with-resources statement. If you don't use that, you should use the RPCConnection.notifyServerAndClose or RPCConnection.forceClose methods to dispose of the connection object when done.
Parameters
The username to authenticate with.
The password to authenticate with.
external Trace for correlation.
the actor on behalf of which all the invocations will be made.
in case of multi-identity RPC endpoint specific legal identity to which the calls must be addressed.
a GracefulReconnect class containing callback logic when the RPC is dis/reconnected unexpectedly. Note that when using graceful reconnect the values for CordaRPCClientConfiguration.connectionMaxRetryInterval and CordaRPCClientConfiguration.maxReconnectAttempts will be overridden in order to mangage the reconnects.
Throws
if the server version is too low or if the server isn't reachable within a reasonable timeout.