Access | Constructor and Description |
---|---|
public | DefaultProgressivePromise(EventExecutor
the executor)EventExecutor which is used to notify the promise when it progresses or it is completeCreates a new instance. |
protected |
DefaultProgressivePromise | back to summary |
---|---|
public DefaultProgressivePromise(EventExecutor executor) Creates a new instance.
It is preferable to use
|
DefaultProgressivePromise | back to summary |
---|---|
protected DefaultProgressivePromise() |
addListener | back to summary |
---|---|
public ProgressivePromise Overrides io. Implements io. Doc from io. Adds the specified listener to this future. The specified listener is notified when this future is done. If this future is already completed, the specified listener is notified immediately.
|
addListeners | back to summary |
---|---|
public ProgressivePromise Overrides io. Implements io. Doc from io. Adds the specified listeners to this future. The specified listeners are notified when this future is done. If this future is already completed, the specified listeners are notified immediately.
|
await | back to summary |
---|---|
public ProgressivePromise Overrides io. Implements io. Doc from io. Waits for this future to be completed.
|
awaitUninterruptibly | back to summary |
---|---|
public ProgressivePromise Overrides io. Implements io. Doc from io. Waits for this future to be completed without
interruption. This method catches an
|
removeListener | back to summary |
---|---|
public ProgressivePromise Overrides io. Implements io. Doc from io. Removes the first occurrence of the specified listener from this future. The specified listener is no longer notified when this future is done. If the specified listener is not associated with this future, this method does nothing and returns silently.
|
removeListeners | back to summary |
---|---|
public ProgressivePromise Overrides io. Implements io. Doc from io. Removes the first occurrence for each of the listeners from this future. The specified listeners are no longer notified when this future is done. If the specified listeners are not associated with this future, this method does nothing and returns silently.
|
setFailure | back to summary |
---|---|
public ProgressivePromise Overrides io. Implements io. Doc from io. Marks this future as a failure and notifies all
listeners.
If it is success or failed already it will throw an
|
setProgress | back to summary |
---|---|
public ProgressivePromise Implements io. Doc from io. Sets the current progress of the operation and notifies the listeners that implement
|
setSuccess | back to summary |
---|---|
public ProgressivePromise Overrides io. Implements io. Doc from io. Marks this future as a success and notifies all
listeners.
If it is success or failed already it will throw an
|
sync | back to summary |
---|---|
public ProgressivePromise Overrides io. Implements io. Doc from io. Waits for this future until it is done, and rethrows the cause of the failure if this future failed.
|
syncUninterruptibly | back to summary |
---|---|
public ProgressivePromise Overrides io. Implements io. Doc from io. Waits for this future until it is done, and rethrows the cause of the failure if this future failed.
|
tryProgress | back to summary |
---|---|
public boolean tryProgress(long progress, long total) Implements io. Doc from io. Tries to set the current progress of the operation and notifies the listeners that implement
|