Package com.adobe.testing.s3mock.common
Class StripedLocks
-
- All Implemented Interfaces:
public final class StripedLocksFixed-size set of lock objects, striped by key hash. Bounds memory use for keyed locking without needing reference-counted removal once an entry is no longer in use.
Two unrelated keys may share a stripe and thus block each other unnecessarily, but a given key always maps to the same stripe, so mutual exclusion per key is preserved.
-
-
Constructor Summary
Constructors Constructor Description StripedLocks(Integer count)
-