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.

@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()  
    String pathFor​(String key)
    Return the path for the key.
  • Method Details

    • pathFor

      String pathFor​(String key)
      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.