public interface Cleaner<T>
Cleaner
represents an object that is used to
clean up after the keyed 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 keyed resource. The resource keys
used should be distinct over time to avoid conflicts.Lease
Modifier and Type | Method and Description |
---|---|
void |
clean(T key)
This method is used to clean up after a the keyed resource.
|
void clean(T key) throws Exception
key
- this is the key for the resource to cleanException
Copyright © 2021. All rights reserved.