simple.util.lease
Interface Cleaner
public interface Cleaner
The Cleaner
represents an object that is used to
clean up after the named resource. Typically this is used when
a Lease
referring a resource has expired meaning
that any memory, file descriptors, or other such limited data
should be released for the named resource. The resource names
used should be distinct over time to avoid conflicts.
- Author:
- Niall Gallagher
- See Also:
Lease
Method Summary |
void |
clean(java.lang.String name)
This method is used to clean up after a the named resource. |
clean
void clean(java.lang.String name)
- This method is used to clean up after a the named resource.
To ensure that the leasing infrastructure operates properly
this should not block releasing resources. If required this
should spawn a thread to perform time consuming tasks.
- Parameters:
name
- this is the name of the resource to clean