- 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.
@FunctionalInterface
public static interface ZookeeperLockRegistry.KeyToPathStrategy
Strategy to convert a lock key (e.g. aggregation correlation id) to a
Zookeeper path.
-
Method Summary
| Modifier and Type |
Method |
Description |
default boolean |
bounded() |
|
java.lang.String |
pathFor(java.lang.String key) |
Return the path for the key.
|
-
Method Details
-
java.lang.String pathFor(java.lang.String key)
Return the path for the key.
- Parameters:
key - the key.
- Returns:
- the path.
-
default boolean bounded()
- Returns:
- true if this strategy returns a bounded number of locks, removing
the need for removing LRU locks.