T
- This type parameter specifies the type of data object which may be
passed into the threadable task.U
- This type parameter specifies the type of data object which will be
passed back by the threadable task on completion.public interface Threadable<T,U>
runThread
method on the
Reactor
interface, an object implementing the Deferred
interface is returned which will be used to forward the results generated by
the run
method on completion.U run(T data) throws java.lang.Exception
data
- This is the input data object which is provided when submitting
the threadable task object to the reactor.onCallback
parameter.java.lang.Exception
- On an exception, the exception object is passed to the deferred
error callback chain as the
onErrback
parameter.