org.apache.solr.common.cloud
Class ZkOperation
java.lang.Object
org.apache.solr.common.cloud.ZkOperation
public abstract class ZkOperation
- extends Object
A callback object which can be used for implementing retry-able operations.
Method Summary |
abstract Object |
execute()
Performs the operation - which may be involved multiple times if the connection
to ZooKeeper closes during this operation |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ZkOperation
public ZkOperation()
execute
public abstract Object 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
Copyright © 2000-2014 Apache Software Foundation. All Rights Reserved.