public final class CacheScheduler.Entry<T extends ExtractionNamespace> extends Object implements AutoCloseable
| Modifier and Type | Method and Description |
|---|---|
void |
awaitTotalUpdates(int totalUpdates) |
void |
close()
Close the last
getCacheState(), if it is CacheScheduler.VersionedCache, and unschedule future updates. |
Map<String,String> |
getCache() |
CacheScheduler.CacheState |
getCacheState()
Returns the last cache state, either
CacheScheduler.NoCache or CacheScheduler.VersionedCache. |
String |
toString() |
public CacheScheduler.CacheState getCacheState()
CacheScheduler.NoCache or CacheScheduler.VersionedCache.public Map<String,String> getCache()
IllegalStateException - if the entry's cache is not yet initialized, or close() has
already been calledpublic void awaitTotalUpdates(int totalUpdates)
throws InterruptedException
InterruptedExceptionpublic void close()
getCacheState(), if it is CacheScheduler.VersionedCache, and unschedule future updates.close in interface AutoCloseableCopyright © 2011–2017. All rights reserved.