RPCConnectionListener - corda

corda / net.corda.client.rpc.ext / RPCConnectionListener

# RPCConnectionListener

`interface RPCConnectionListener<I : RPCOps>`

A listener that can be attached to MultiRPCClient to be notified about important RPC connectivity events.

### Types

#### ConnectionContext | Defines context information for events distributed. `interface ConnectionContext<I : RPCOps>`

### Functions

#### onConnect | This method will be called to inform that RPC connection is established. ConnectionContext.connectionOpt will not be `null`. `abstract fun onConnect(context: ConnectionContext<I>): Unit`
#### onDisconnect | This method will be called to inform about connection loss. Since given RPC client may produce multiple RPCConnections, ConnectionContext.connectionOpt will specify which connection is interrupted. `abstract fun onDisconnect(context: ConnectionContext<I>): Unit`
#### onPermanentFailure | This is a terminal notification to inform that: `abstract fun onPermanentFailure(context: ConnectionContext<I>): Unit`