org.apache.pivot.io
Class IOTask<V>

java.lang.Object
  extended by org.apache.pivot.util.concurrent.Task<V>
      extended by 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.
 
Field Summary
protected  long bytesReceived
           
protected  long bytesSent
           
 
Fields inherited from class org.apache.pivot.util.concurrent.Task
abort, DEFAULT_EXECUTOR_SERVICE, timeout
 
Constructor Summary
IOTask()
           
IOTask(ExecutorService executorService)
           
 
Method Summary
 
Methods inherited from class org.apache.pivot.util.concurrent.Task
abort, execute, execute, execute, getExecutorService, getFault, getResult, getTimeout, isPending, setTimeout
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

bytesSent

protected volatile long bytesSent

bytesReceived

protected volatile long bytesReceived
Constructor Detail

IOTask

public IOTask()

IOTask

public IOTask(ExecutorService executorService)