net.tomp2p.futures
Interface FutureRunnable

All Superinterfaces:
Runnable

public interface FutureRunnable
extends Runnable

A future runnable is used for running futures in the background (in a different thread)

Author:
Thomas Bocek

Method Summary
 void failed(String reason)
          A run() method that fails is very silent, thus we provide failed, which can be used to set a future to fail.
 
Methods inherited from interface java.lang.Runnable
run
 

Method Detail

failed

void failed(String reason)
A run() method that fails is very silent, thus we provide failed, which can be used to set a future to fail.

Parameters:
reason - The reason why something failed.


Copyright © 2013. All Rights Reserved.