corda / net.corda.client.rpc / CordaRPCConnection / forceClose

forceClose

fun forceClose(): Unit

Closes this client without notifying the server.

The server will eventually clear out the RPC message queue and disconnect subscribed observers, but this may take longer than desired, so to conserve resources you should normally use notifyServerAndClose. This method is helpful when the node may be shutting down or have already shut down and you don't want to block waiting for it to come back, which typically happens in integration tests and demos rather than production.