Class ClientExecutionAbortTaskImpl
java.lang.Object
com.amazonaws.http.timers.client.ClientExecutionAbortTaskImpl
- All Implemented Interfaces:
ClientExecutionAbortTask, Runnable
Implementation of
ClientExecutionAbortTask that interrupts the caller thread and aborts
any HTTP request when triggered-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanvoidrun()voidsetCurrentHttpRequest(org.apache.http.client.methods.HttpRequestBase newRequest) Client Execution timer task needs to abort the current running HTTP request when executed.
-
Constructor Details
-
ClientExecutionAbortTaskImpl
-
-
Method Details
-
run
-
setCurrentHttpRequest
public void setCurrentHttpRequest(org.apache.http.client.methods.HttpRequestBase newRequest) Description copied from interface:ClientExecutionAbortTaskClient Execution timer task needs to abort the current running HTTP request when executed.- Specified by:
setCurrentHttpRequestin interfaceClientExecutionAbortTask- Parameters:
newRequest-
-
hasClientExecutionAborted
public boolean hasClientExecutionAborted()- Specified by:
hasClientExecutionAbortedin interfaceClientExecutionAbortTask- Returns:
- True if client execution has been aborted by the timer task. False otherwise
-
isEnabled
public boolean isEnabled()- Specified by:
isEnabledin interfaceClientExecutionAbortTask- Returns:
- True if the timer task has been scheduled. False if client execution timeout is disabled for this request
-