Package com.yahoo.processing.execution
Class RunnableExecution
java.lang.Object
com.yahoo.processing.execution.RunnableExecution
- All Implemented Interfaces:
Runnable
An adaptor of an Execution to a runnable. Calling run on this causes process to be called on the
given processor.
- Author:
- bratseth
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns the exception from executing this, or null if response is set or run() has not been called yetReturns the response from executing this, or null if exception is set or run() has not been called yetvoid
run()
Calls process on the execution of this.
-
Constructor Details
-
RunnableExecution
-
-
Method Details
-
run
public void run()Calls process on the execution of this. This will result in either response or exception being set on this. Calling this never throws an exception. -
getResponse
Returns the response from executing this, or null if exception is set or run() has not been called yet -
getException
Returns the exception from executing this, or null if response is set or run() has not been called yet
-