Package com.amazonaws.http.timers.client
Class ClientExecutionAbortTrackerTaskImpl
- java.lang.Object
-
- com.amazonaws.http.timers.client.ClientExecutionAbortTrackerTaskImpl
-
- All Implemented Interfaces:
ClientExecutionAbortTrackerTask
public class ClientExecutionAbortTrackerTaskImpl extends Object implements ClientExecutionAbortTrackerTask
Keeps track of the scheduledClientExecutionAbortTask
and the associatedFuture
-
-
Constructor Summary
Constructors Constructor Description ClientExecutionAbortTrackerTaskImpl(ClientExecutionAbortTask task, ScheduledFuture<?> future)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
cancelTask()
boolean
hasTimeoutExpired()
boolean
isEnabled()
void
setCurrentHttpRequest(org.apache.http.client.methods.HttpRequestBase newRequest)
Client execution timer task needs to abort the current running HTTP request when executed.
-
-
-
Constructor Detail
-
ClientExecutionAbortTrackerTaskImpl
public ClientExecutionAbortTrackerTaskImpl(ClientExecutionAbortTask task, ScheduledFuture<?> future)
-
-
Method Detail
-
setCurrentHttpRequest
public void setCurrentHttpRequest(org.apache.http.client.methods.HttpRequestBase newRequest)
Description copied from interface:ClientExecutionAbortTrackerTask
Client execution timer task needs to abort the current running HTTP request when executed.- Specified by:
setCurrentHttpRequest
in interfaceClientExecutionAbortTrackerTask
-
hasTimeoutExpired
public boolean hasTimeoutExpired()
- Specified by:
hasTimeoutExpired
in interfaceClientExecutionAbortTrackerTask
- Returns:
- True if client execution has been aborted by the timer task. False otherwise
-
isEnabled
public boolean isEnabled()
- Specified by:
isEnabled
in interfaceClientExecutionAbortTrackerTask
- Returns:
- True if the timer task has been scheduled. False if the client execution timeout is disabled for this request
-
cancelTask
public void cancelTask()
- Specified by:
cancelTask
in interfaceClientExecutionAbortTrackerTask
-
-