public class InterruptMonitor extends Object
| Modifier and Type | Method and Description |
|---|---|
static void |
checkInterrupted()
Check if the thread has been interrupted.
|
static void |
checkInterrupted(SdkHttpFullResponse response)
Check if the thread has been interrupted.
|
public static void checkInterrupted()
throws InterruptedException
InterruptedException.
Long running tasks should be periodically checked if the current thread has been
interrupted and handle it appropriatelyInterruptedException - If thread has been interruptedpublic static void checkInterrupted(SdkHttpFullResponse response) throws InterruptedException
InterruptedException.
Long running tasks should be periodically checked if the current thread has been
interrupted and handle it appropriatelyresponse - Response to be closed before returning control to the caller to avoid
leaking the connection.InterruptedException - If thread has been interruptedCopyright © 2017 Amazon Web Services, Inc. All Rights Reserved.