Interface ZookeeperLockRegistry.KeyToPathStrategy
- Enclosing class:
- ZookeeperLockRegistry
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Strategy to convert a lock key (e.g. aggregation correlation id) to a
Zookeeper path.
-
Method Summary
-
Method Details
-
pathFor
Return the path for the key.- Parameters:
key
- the key.- Returns:
- the path.
-
bounded
default boolean bounded()- Returns:
- true if this strategy returns a bounded number of locks, removing the need for removing LRU locks.
-