net.sf.mmm.util.io.base
Class StreamUtilImpl.AsyncTransferrerImpl

java.lang.Object
  extended by java.util.concurrent.FutureTask<Long>
      extended by net.sf.mmm.util.io.base.StreamUtilImpl.AsyncTransferrerImpl
All Implemented Interfaces:
Runnable, Future<Long>, RunnableFuture<Long>, AsyncTransferrer
Enclosing class:
StreamUtilImpl

protected static class StreamUtilImpl.AsyncTransferrerImpl
extends FutureTask<Long>
implements AsyncTransferrer

This is the default implementation of the AsyncTransferrer interface.


Field Summary
private  StreamUtilImpl.BaseTransferrer transferrer
          the actual task.
 
Constructor Summary
StreamUtilImpl.AsyncTransferrerImpl(StreamUtilImpl.BaseTransferrer transferrer)
          The constructor.
 
Method Summary
 boolean cancel(boolean mayInterruptIfRunning)
          
 
Methods inherited from class java.util.concurrent.FutureTask
done, get, get, isCancelled, isDone, run, runAndReset, set, setException
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface net.sf.mmm.util.io.api.AsyncTransferrer
get, get
 
Methods inherited from interface java.util.concurrent.Future
isCancelled, isDone
 

Field Detail

transferrer

private final StreamUtilImpl.BaseTransferrer transferrer
the actual task.

Constructor Detail

StreamUtilImpl.AsyncTransferrerImpl

public StreamUtilImpl.AsyncTransferrerImpl(StreamUtilImpl.BaseTransferrer transferrer)
The constructor.

Parameters:
transferrer - is the actual transferrer task.
Method Detail

cancel

public boolean cancel(boolean mayInterruptIfRunning)

Specified by:
cancel in interface Future<Long>
Overrides:
cancel in class FutureTask<Long>


Copyright © 2001-2010 mmm-Team. All Rights Reserved.