Package org.apache.zookeeper
Interface AsyncCallback
-
- All Known Subinterfaces:
AsyncCallback.ACLCallback,AsyncCallback.AllChildrenNumberCallback,AsyncCallback.Children2Callback,AsyncCallback.ChildrenCallback,AsyncCallback.Create2Callback,AsyncCallback.DataCallback,AsyncCallback.EphemeralsCallback,AsyncCallback.MultiCallback,AsyncCallback.StatCallback,AsyncCallback.StringCallback,AsyncCallback.VoidCallback
- All Known Implementing Classes:
ZooKeeperSaslClient.ServerSaslResponseCallback
@Public public interface AsyncCallbackInterface definitions of asynchronous callbacks.ZooKeeper provides asynchronous version as equivalent to synchronous APIs.
An asynchronous callback is deferred to invoke after a function returns. Asynchronous calls usually improve system efficiency on IO-related APIs.
It is highly recommended NOT to perform any blocking operation inside the callbacks. If you block the thread the ZooKeeper client won't process other events.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceAsyncCallback.ACLCallbackThis callback is used to retrieve the ACL and stat of the node.static interfaceAsyncCallback.AllChildrenNumberCallbackThis callback is used to get all children node number of the node.static interfaceAsyncCallback.Children2CallbackThis callback is used to retrieve the children and stat of the node.static interfaceAsyncCallback.ChildrenCallbackThis callback is used to retrieve the children of the node.static interfaceAsyncCallback.Create2CallbackThis callback is used to retrieve the name and stat of the node.static interfaceAsyncCallback.DataCallbackThis callback is used to retrieve the data and stat of the node.static interfaceAsyncCallback.EphemeralsCallbackThis callback is used to process the getEphemerals results from a single getEphemerals call.static interfaceAsyncCallback.MultiCallbackThis callback is used to process the multiple results from a single multi call.static interfaceAsyncCallback.StatCallbackThis callback is used to retrieve the stat of the node.static interfaceAsyncCallback.StringCallbackThis callback is used to retrieve the name of the node.static interfaceAsyncCallback.VoidCallbackThis callback doesn't retrieve anything from the node.
-