public interface Monitorable
This is useful for managing resources that need to be tracked and potentially cleaned up when they are no longer needed.
| Modifier and Type | Method and Description |
|---|---|
void |
unmonitor()
Stops monitoring the resource.
|
static void |
unmonitor(Object t)
Stops the monitoring of the specified object.
|
void unmonitor()
Implementations of this method should ensure that the resource and any resources it uses are no longer being tracked for any purpose such as cleanup, resource management, or debugging. This is particularly important for resources that are explicitly managed to avoid leaks.
static void unmonitor(Object t)
t - The object to stop monitoringCopyright © 2024. All rights reserved.