Package com.amazonaws.http.timers.client
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 TypeMethodDescriptionboolean
boolean
void
run()
void
setCurrentHttpRequest
(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
public void run() -
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 interfaceClientExecutionAbortTask
- Parameters:
newRequest
-
-
hasClientExecutionAborted
public boolean hasClientExecutionAborted()- Specified by:
hasClientExecutionAborted
in interfaceClientExecutionAbortTask
- Returns:
- True if client execution has been aborted by the timer task. False otherwise
-
isEnabled
public boolean isEnabled()- Specified by:
isEnabled
in interfaceClientExecutionAbortTask
- Returns:
- True if the timer task has been scheduled. False if client execution timeout is disabled for this request
-