Package com.seeq.link.sdk.utilities
Class RequestCancellation
java.lang.Object
com.seeq.link.sdk.utilities.RequestCancellation
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
check()
Checks if this thread has been interrupted, and throws anOperationCanceledException
if so.
-
Constructor Details
-
RequestCancellation
public RequestCancellation()
-
-
Method Details
-
check
public static void check()Checks if this thread has been interrupted, and throws anOperationCanceledException
if so. This is necessary anywhere we want to check for cancellation where no blocking methods are called. Methods such as Thread.Sleep that throw an InterruptedException will check, but in other situations explicitly checking is necessary.
-