Package com.yahoo.processing.execution
Class RunnableExecution
- java.lang.Object
-
- com.yahoo.processing.execution.RunnableExecution
-
- All Implemented Interfaces:
java.lang.Runnable
public class RunnableExecution extends java.lang.Object implements java.lang.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
Constructors Constructor Description RunnableExecution(Request request, Execution execution)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Throwable
getException()
Returns the exception from executing this, or null if response is set or run() has not been called yetResponse
getResponse()
Returns 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.
-
-
-
Method Detail
-
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.- Specified by:
run
in interfacejava.lang.Runnable
-
getResponse
public Response getResponse()
Returns the response from executing this, or null if exception is set or run() has not been called yet
-
getException
public java.lang.Throwable getException()
Returns the exception from executing this, or null if response is set or run() has not been called yet
-
-