Class AsyncContext
-
- All Implemented Interfaces:
public final class AsyncContextAsyncContext provides states of async
It is recommended that async processes check for interruptions periodically.
- Since:
5.0.20
-
-
Constructor Summary
Constructors Constructor Description AsyncContext(Boolean interrupted)
-
Method Summary
Modifier and Type Method Description final BooleanisInterrupted()Returns interrupted or not. final static AsyncContextofTurnOff()-
-
Constructor Detail
-
AsyncContext
AsyncContext(Boolean interrupted)
- Parameters:
interrupted- Interruption status.
-
-
Method Detail
-
isInterrupted
final Boolean isInterrupted()
Returns interrupted or not. Async operation implementors should poll this periodically and return early when true to support cooperative cancellation.
- Returns:
Boolean Interrupted or not
- Since:
5.0.20
-
ofTurnOff
final static AsyncContext ofTurnOff()
-
-
-
-