Class RunnableExecution

java.lang.Object
com.yahoo.processing.execution.RunnableExecution
All Implemented Interfaces:
Runnable

public class RunnableExecution extends Object implements 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 Details

    • RunnableExecution

      public RunnableExecution(Request request, Execution execution)
  • 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.
      Specified by:
      run in interface 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 Throwable getException()
      Returns the exception from executing this, or null if response is set or run() has not been called yet