net.sf.mmm.util.io.api
Interface AsyncTransferrer

All Superinterfaces:
Future<Long>
All Known Implementing Classes:
StreamUtilImpl.AsyncTransferrerImpl

public interface AsyncTransferrer
extends Future<Long>

This is the interface for an async transferrer of streams or readers/writers.

Since:
1.0.0
Author:
Joerg Hohwiller (hohwille at users.sourceforge.net)

Method Summary
 Long get()
          
 Long get(long timeout, TimeUnit unit)
          
 
Methods inherited from interface java.util.concurrent.Future
cancel, isCancelled, isDone
 

Method Detail

get

Long get()
         throws InterruptedException,
                ExecutionException

Specified by:
get in interface Future<Long>
Returns:
the number of bytes that have been transferred.
Throws:
InterruptedException
ExecutionException

get

Long get(long timeout,
         TimeUnit unit)
         throws InterruptedException,
                ExecutionException,
                TimeoutException

Specified by:
get in interface Future<Long>
Returns:
the number of bytes that have been transferred.
Throws:
InterruptedException
ExecutionException
TimeoutException


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