Class StripedLocks

  • All Implemented Interfaces:

    
    public final class StripedLocks
    
                        

    Fixed-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.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final Object lockFor(Object key)
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait