public final class DelegateCallback extends Object implements IOCallback
IOCallbacks to be used as one.| Constructor and Description |
|---|
DelegateCallback(Collection<? extends IOCallback> delegates)
It doesn't copy defensively the given
delegates. |
| Modifier and Type | Method and Description |
|---|---|
void |
done()
Method for sync notifications.
|
void |
onError(int errorCode,
String errorMessage)
Method for error notifications.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdone, onErrorpublic DelegateCallback(Collection<? extends IOCallback> delegates)
delegates.NullPointerException - if delegates is nullpublic void done()
IOCallbackdone in interface IOCallbackpublic void onError(int errorCode,
String errorMessage)
IOCallbackonError in interface IOCallbackCopyright © 2019 The Apache Software Foundation. All Rights Reserved.