public interface UncheckedCloseable extends AutoCloseable
close()
'd.
Extends AutoCloseable
but the close()
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.
Modifier and Type | Method and Description |
---|---|
void |
close() |
void close()
close
in interface AutoCloseable
Copyright © 2019 OpenDaylight. All rights reserved.