インターフェース ZookeeperLockRegistry.KeyToPathStrategy

含まれているクラス:
ZookeeperLockRegistry
関数インターフェース:
これは関数インターフェースであるため、ラムダ式またはメソッド参照の割り当てターゲットとして使用できます。

@FunctionalInterfaceSE
public static interface ZookeeperLockRegistry.KeyToPathStrategy
ロックキー (集約相関 ID など) を Zookeeper パスに変換する戦略。
  • メソッドのサマリー

    修飾子と型 メソッド 説明
    default booleanbounded()
    StringSEpathFor​(StringSE key)
    キーのパスを返します。
  • メソッドの詳細

    • pathFor

      StringSE pathFor​(StringSE key)
      キーのパスを返します。
      パラメーター:
      key - キー。
      戻り値:
      パス。
    • bounded

      default boolean bounded()
      戻り値:
      この戦略が制限された数のロックを返す場合は true であり、LRU ロックを削除する必要がなくなります。