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:
InstanceContainer, InstanceManager, SimpleClient, ZooKeeperSaslClient.ServerSaslResponseCallback

@Public public interface AsyncCallback
Interface 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.