Interface UncheckedCloseable
- 
- All Superinterfaces:
 AutoCloseable
public interface UncheckedCloseable extends AutoCloseable
Something which can beclose()'d.Extends
AutoCloseablebut theclose()here does not throw any Exception.Used e.g. by APIs of OSGi bundles which return objects that must be closed either when such objects are no longer required, or when unloading the bundle; typically e.g. in Blueprint beans' @PreDestroy methods. The infrautils metrics are an example of such objects.
- Author:
 - Michael Vorburger.ch
 
 
- 
- 
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidclose() 
 - 
 
- 
- 
Method Detail
- 
close
void close()
- Specified by:
 closein interfaceAutoCloseable
 
 - 
 
 -