com.ning.http.client
Interface FutureImpl<V>

Type Parameters:
V - Type of the value that will be returned.
All Superinterfaces:
Future<V>
All Known Implementing Classes:
ApacheResponseFuture, JDKDelegateFuture, JDKFuture, NettyResponseFuture

public interface FutureImpl<V>
extends Future<V>

Extended Future


Method Summary
 void abort(Throwable t)
          Abort the current processing, and propagate the Throwable to the AsyncHandler or Future
 void content(V v)
          Set the content that will be returned by this instance
 void done(Callable callable)
          Execute a Callable and if there is no exception, mark this Future as done and release the internal lock.
 void touch()
          Touch the current instance to prevent external service to times out.
 
Methods inherited from interface java.util.concurrent.Future
cancel, get, get, isCancelled, isDone
 

Method Detail

done

void done(Callable callable)
Execute a Callable and if there is no exception, mark this Future as done and release the internal lock.

Parameters:
callable -

abort

void abort(Throwable t)
Abort the current processing, and propagate the Throwable to the AsyncHandler or Future

Parameters:
t -

content

void content(V v)
Set the content that will be returned by this instance

Parameters:
v - the content that will be returned by this instance

touch

void touch()
Touch the current instance to prevent external service to times out.



Copyright © 2010. All Rights Reserved.