Package org.apache.juneau.commons.concurrent
package org.apache.juneau.commons.concurrent
Concurrent programming utilities including locks and synchronization primitives.
-
ClassDescriptionBuilt-in default
ReplayCache: a per-process,ConcurrentHashMap-backed seen-identifier set with self-eviction bounded by each record's ownexpiresAtMs.A thread-safe reference that combinesAtomicReferencewithOptional-like functionality.SPI for detecting reuse ("replay") of a one-time-use identifier.The policy applied byReplayCache.checkAndRecord(String, long, FailMode, Consumer)whenReplayCache.checkAndRecord(String, long)throws (the backing store could not answer).A simple auto-closeable wrapper around aLockthat automatically acquires the lock when created and releases it when closed.An extension ofReentrantReadWriteLockwith convenience methods for creating auto-closeable locks that work seamlessly with try-with-resources statements.