com.tangosol.net.cache
Class ReadWriteBackingMap.ReadLatch

A synchronization construct used to coordinate asynchronous loads by the refresh-ahead thread with cache accesses by other threads.

The refresh-ahead thread places a new ReadLatch in the control map before performing a load operation on the cache store. The presence of the latch signals to a thread executing the ReadWriteBackingMap.get(java.lang.Object) method that an asynchronous load is in progress. This thread can then wait on the latch to get the results of the asynchronous load. This thread is then responsible for removing the latch from the control map.