Class Cache.OriginThreadAwareFuture

java.lang.Object
org.glassfish.hk2.utilities.cache.Cache.OriginThreadAwareFuture
All Implemented Interfaces:
Future<V>
Enclosing class:
Cache<K,V>

private class Cache.OriginThreadAwareFuture extends Object implements Future<V>
Helper class, that remembers the future task origin thread, so that cycles could be detected. If any thread starts computation for given key and the same thread requests the computed value before the computation stops, a cycle is detected and registered cycle handler is called.