Class ClientExecutionAbortTaskImpl

java.lang.Object
com.amazonaws.http.timers.client.ClientExecutionAbortTaskImpl
All Implemented Interfaces:
ClientExecutionAbortTask, Runnable

public class ClientExecutionAbortTaskImpl extends Object implements ClientExecutionAbortTask
Implementation of ClientExecutionAbortTask that interrupts the caller thread and aborts any HTTP request when triggered
  • Constructor Details

    • ClientExecutionAbortTaskImpl

      public ClientExecutionAbortTaskImpl(Thread thread)
  • Method Details

    • run

      public void run()
      Specified by:
      run in interface Runnable
    • setCurrentHttpRequest

      public void setCurrentHttpRequest(org.apache.http.client.methods.HttpRequestBase newRequest)
      Description copied from interface: ClientExecutionAbortTask
      Client Execution timer task needs to abort the current running HTTP request when executed.
      Specified by:
      setCurrentHttpRequest in interface ClientExecutionAbortTask
    • hasClientExecutionAborted

      public boolean hasClientExecutionAborted()
      Specified by:
      hasClientExecutionAborted in interface ClientExecutionAbortTask
      Returns:
      True if client execution has been aborted by the timer task. False otherwise
    • isEnabled

      public boolean isEnabled()
      Specified by:
      isEnabled in interface ClientExecutionAbortTask
      Returns:
      True if the timer task has been scheduled. False if client execution timeout is disabled for this request