Class CloseableMonitor.Hold (1.15.0)

public class CloseableMonitor.Hold implements AutoCloseable

This is meant for use in the try-with-resources pattern. It will call leave() on a Monitor when it goes out of scope. This is cannot be constructed directly, but through usage of the static utility methods above.

Inheritance

java.lang.Object > CloseableMonitor.Hold

Implements

AutoCloseable

Methods

close()

public void close()