public class CleanerProxy extends java.lang.ObjectThis utility class exists in order to put all functionality relating to use of the Java 9 class
Cleanerin one place, to allow the product to continue to work with Java 8. If no Cleaner is available (that is, if we're running under Java 8), everything should run fine except that under rare conditions, resources will not be properly closed. This happens, for example, if a collection() is bound to a lazily-evaluated variable, and the contents of the collection() are not read to completion.
Nested Class Summary
Nested Classes Modifier and Type Class Description
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description
registerCleanupAction(java.lang.Object obj, java.lang.Runnable runnable)