Interface ZkOperation<T>


public interface ZkOperation<T>
A callback object which can be used for implementing retry-able operations.
  • Method Summary

    Modifier and Type
    Method
    Description
    Performs the operation - which may be involved multiple times if the connection to ZooKeeper closes during this operation
  • Method Details

    • execute

      T execute() throws org.apache.zookeeper.KeeperException, InterruptedException
      Performs the operation - which may be involved multiple times if the connection to ZooKeeper closes during this operation
      Returns:
      the result of the operation or null
      Throws:
      org.apache.zookeeper.KeeperException
      InterruptedException