Class 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
    • 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 yet
      Response getResponse()
      Returns the response from executing this, or null if exception is set or run() has not been called yet
      void run()
      Calls process on the execution of this.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • RunnableExecution

        public RunnableExecution​(Request request,
                                 Execution execution)
    • 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 interface java.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