org.apache.pivot.io
Class IOTask<V>
java.lang.Object
org.apache.pivot.util.concurrent.Task<V>
org.apache.pivot.io.IOTask<V>
public abstract class IOTask<V>
- extends Task<V>
Abstract base class for input/output tasks.
Nested Class Summary |
protected class |
IOTask.MonitoredInputStream
Input stream that monitors the bytes that are read from it by
incrementing the bytesReceived member variable. |
protected class |
IOTask.MonitoredOutputStream
Output stream that monitors the bytes that are written to it by
incrementing the bytesSent member variable. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
bytesSent
protected volatile long bytesSent
bytesReceived
protected volatile long bytesReceived
IOTask
public IOTask()
IOTask
public IOTask(ExecutorService executorService)