corda / net.corda.client.rpc / CordaRPCConnection / notifyServerAndClose

notifyServerAndClose

fun notifyServerAndClose(): Unit

Closes this client gracefully by sending a notification to the server, so it can immediately clean up resources. If the server is not available this method may block for a short period until it's clear the server is not coming back.

Note: this will also be the implementation of close so won't be needed when using use or try-with-resources blocks.