Interface VespaCurator

  • All Known Implementing Classes:
    Curator

    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
      java.lang.AutoCloseable lock​(com.yahoo.path.Path path, java.time.Duration timeout)
      Create and acquire a re-entrant lock in given path.
    • Method Detail

      • lock

        java.lang.AutoCloseable lock​(com.yahoo.path.Path path,
                                     java.time.Duration timeout)
        Create and acquire a re-entrant lock in given path. This blocks until the lock is acquired or timeout elapses.