Package com.yahoo.vespa.curator.api
Interface VespaCurator
-
- All Known Implementing Classes:
Curator
,MockCurator
public interface VespaCurator
A client for a ZooKeeper cluster running inside Vespa. Applications that want to use ZooKeeper can inject this in their code.- Author:
- mpolden
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description AutoCloseable
lock(com.yahoo.path.Path path, Duration timeout)
Create and acquire a re-entrant lock in given path.
-
-
-
Method Detail
-
lock
AutoCloseable lock(com.yahoo.path.Path path, Duration timeout)
Create and acquire a re-entrant lock in given path. This blocks until the lock is acquired or timeout elapses.
-
-