Add reconnection hook for the new gracefulReconnect RPC feature

Description

It will be useful for users of the RPC client to know when the reconnecting CordaRPCClient has reconnected under the hood. This can be for updating a UI or allowing necessary reconciliation with missed vault events during connection downtime.

In terms of design, it might make sense to convert the gracefulReconnect boolean parameter of CordaRPCClient.start into a reconnect config object:

 

1 2 3 start(username: String, password: String, targetLegalIdentity: CordaX500Name, gracefulReconnect: GracefulReconnct? = null) class GracefulReconnct(val onReconnect: () -> Unit)

 

CVSS Vector

None

Status

Assignee

ryan.fowler

Reporter

Shams Asari

Labels

None

CVSS Score

None

Feature Team

Corda Core

Target Version/s

None

Ported to...

None

Story Points

3

Sprint

Fix versions

Priority

High