Releases any resources associated with the Client instance. This method is called automatically at the end of a try-with-resources block, which helps to ensure that resources are released promptly and reliably.

Example of using a Client object within a try-with-resources statement:

try (NabtoClient client = NabtoClient.create(...)) {
// ... use client

With this setup, {@code close()} will be called automatically on {@code client} at the end of the block, releasing any underlying native Nabto Client SDK resources without any further action required on the application.

If the try-with-resources construct is not feasible, the application must manually call close() when the NabtoClient instance is no longer needed.

Unlike the {@link AutoCloseable#close()} method, this {@code close()} method does not throw any exceptions.


    public abstract void close()