Closeable

public interface Closeable implements AutoCloseable

Base interface for server-side objects that may hold resources that need to be released at the end of the lifecycle of the object.

A class will benefit from implementing this interface instead of AutoCloseable if it needs to see if the instance is open prior to making other calls.

See also

Inheritors

Functions

Link copied to clipboard
public void checkOpen()
Ensures that the object is open.
Link copied to clipboard
public abstract boolean isOpen()
Tells if the object is still open.

Inherited functions

Link copied to clipboard
public abstract void close()