T - type of resultpublic static class IOUtil.RecursiveAsyncSupplierListener<T> extends Object implements AsyncSupplier.Listener<T,IOException>
| Modifier and Type | Class and Description |
|---|---|
static interface |
IOUtil.RecursiveAsyncSupplierListener.OnSuccess<T>
On success listener that receive the listener instance to perform recursive operation.
|
| Constructor and Description |
|---|
RecursiveAsyncSupplierListener(IOUtil.RecursiveAsyncSupplierListener.OnSuccess<T> onSuccess,
IAsync<IOException> onErrorOrCancel,
Consumer<Pair<T2,IOException>> ondone)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
cancelled(CancelException event)
Called when the AsyncSupplier is unblocked by a cancellation.
|
void |
error(IOException error)
Called when the AsyncSupplier is unblocked by an error.
|
void |
ready(T result)
Called when the AsyncSupplier is unblocked with a result.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitfrom, frompublic RecursiveAsyncSupplierListener(IOUtil.RecursiveAsyncSupplierListener.OnSuccess<T> onSuccess, IAsync<IOException> onErrorOrCancel, Consumer<Pair<T2,IOException>> ondone)
public void ready(T result)
AsyncSupplier.Listenerready in interface AsyncSupplier.Listener<T,IOException>public void error(IOException error)
AsyncSupplier.Listenererror in interface AsyncSupplier.Listener<T,IOException>public void cancelled(CancelException event)
AsyncSupplier.Listenercancelled in interface AsyncSupplier.Listener<T,IOException>Copyright © 2019. All rights reserved.