protected abstract static class StreamUtilImpl.AbstractAsyncTransferrer extends Object implements Callable<Long>, Stoppable
Callable that transfers data of streams or
readers/writers.| Modifier and Type | Field and Description |
|---|---|
private boolean |
completed |
private boolean |
stopped |
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractAsyncTransferrer() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isCompleted()
This method determines if the transfer has been completed successfully.
|
boolean |
isStopped()
This method determines if this transferrer was
stopped. |
protected void |
setCompleted()
This method sets the
completed-flag. |
void |
stop()
This method stops the task.
|
public void stop()
Stoppablepublic final boolean isStopped()
stopped.true if stopped, false otherwise.public final boolean isCompleted()
true if successfully completed, false if still running, stopped or an exception occurred.protected void setCompleted()
completed-flag.Copyright © 2001–2016 mmm-Team. All rights reserved.