public final class ApiCallTimeoutTracker extends Object implements TimeoutTracker
TimeoutTask and the ScheduledFuture.| Constructor and Description |
|---|
ApiCallTimeoutTracker(TimeoutTask timeout,
ScheduledFuture<?> future) |
| Modifier and Type | Method and Description |
|---|---|
void |
abortable(Abortable abortable)
Sets the abortable task to be aborted by
TimeoutTask |
void |
cancel()
cancel the
ScheduledFuture |
boolean |
hasExecuted() |
boolean |
isEnabled() |
public ApiCallTimeoutTracker(TimeoutTask timeout, ScheduledFuture<?> future)
public boolean hasExecuted()
hasExecuted in interface TimeoutTrackerpublic boolean isEnabled()
isEnabled in interface TimeoutTrackerpublic void cancel()
TimeoutTrackerScheduledFuturecancel in interface TimeoutTrackerpublic void abortable(Abortable abortable)
TimeoutTrackerTimeoutTaskabortable in interface TimeoutTrackerabortable - the abortable taskCopyright © 2017 Amazon Web Services, Inc. All Rights Reserved.