public class CacheScheduler.EntryImpl<T extends ExtractionNamespace> extends Object implements AutoCloseable
CacheScheduler.Entry
, need to be a separate class
because the Entry must not be referenced from the runnable executed in CacheScheduler.cacheManager
's ExecutorService,
that would be a leak preventing the Entry to be collected by GC, and therefore entryCleaner
to be run by
the JVM. Also, entryCleaner
must not reference the Entry through it's Runnable hunk.public void close()
close
in interface AutoCloseable
Copyright © 2011–2017. All rights reserved.