public final class DelegateCallback extends Object implements IOCallback
IOCallback
s 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, wait
done, onError
public DelegateCallback(Collection<? extends IOCallback> delegates)
delegates
.NullPointerException
- if delegates
is null
public void done()
IOCallback
done
in interface IOCallback
public void onError(int errorCode, String errorMessage)
IOCallback
onError
in interface IOCallback
Copyright © 2021 JBoss by Red Hat. All rights reserved.