org.apache.solr.common.cloud

Class ZkOperation



  • public abstract class ZkOperation
    extends Object
    A callback object which can be used for implementing retry-able operations.
    • Method Detail

      • execute

        public abstract Object execute()
                                throws 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:
        KeeperException
        InterruptedException