Package tools.refinery.store.tuple
Class Tuple1.Cache
java.lang.Object
tools.refinery.store.tuple.Tuple1.Cache
- Enclosing class:
Tuple1
This class uses safe double-checked locking, see
Safe Publication and Safe Initialization in
Java for details.
This class implements the singleton pattern to ensure only a single cache exists. This is thread-safe because of the locking of the cache.
-
Field Summary
-
Method Summary
-
Field Details
-
INSTANCE
-
-
Method Details
-
reset
public void reset() -
getOrCreate
-