K - public class FutureProgres<K> extends BaseFutureImpl<FutureProgres<K>>
BaseFuture.FutureTypecompleted, lock, reason, type| Constructor and Description |
|---|
FutureProgres()
Creates a new future for the shutdown operation.
|
| Modifier and Type | Method and Description |
|---|---|
FutureProgres<K> |
done(K object)
Set future as finished and notify listeners.
|
FutureProgres<K> |
next() |
K |
object() |
FutureProgres<K> |
progres(K object,
boolean last)
This will finish this future, but it will create a new future that will be returned and that can be obtained by
next(). |
addCancel, addListener, addListener, await, await, awaitListeners, awaitListenersUninterruptibly, awaitUninterruptibly, awaitUninterruptibly, cancel, completedAndNotify, failed, failed, failed, failed, failed, failedReason, isCompleted, isFailed, isSuccess, notifyListeners, removeCancel, removeListener, self, self, typepublic FutureProgres()
public FutureProgres<K> progres(K object, boolean last)
next().object - The object to setlast - If the there will be no more data, set flag to true. Same as done(Object).public FutureProgres<K> done(K object)
object - An object that can be attached.public K object()
public FutureProgres<K> next()
#setProgres(Object) is calledUCopyright © 2014. All rights reserved.