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
Modifier and TypeMethodDescriptionCreate and acquire a re-entrant lock in given path.
-
Method Details
-
lock
AutoCloseable lock(com.yahoo.path.Path path, Duration timeout) throws com.yahoo.concurrent.UncheckedTimeoutException Create and acquire a re-entrant lock in given path. This blocks until the lock is acquired or timeout elapses.- Throws:
com.yahoo.concurrent.UncheckedTimeoutException
-