Interface Suspendable
-
- All Known Implementing Classes:
ResourceMethod
public interface SuspendableJersey model component that is suspendable and may hold suspend-related information.- Author:
- Marek Potociar
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description longgetSuspendTimeout()Get the suspend timeout value in the giventime unit.TimeUnitgetSuspendTimeoutUnit()Get the suspendtimeout valuetime unit.booleanisManagedAsyncDeclared()Check if the component is marked to be executed asynchronously by using an internal Jerseyexecutor service.booleanisSuspendDeclared()Check if the component is marked for suspending.
-
-
-
Method Detail
-
isSuspendDeclared
boolean isSuspendDeclared()
Check if the component is marked for suspending.- Returns:
trueif the component is marked for suspending,falseotherwise.
-
isManagedAsyncDeclared
boolean isManagedAsyncDeclared()
Check if the component is marked to be executed asynchronously by using an internal Jerseyexecutor service.- Returns:
trueif the component is marked for managed asynchronous execution,falseotherwise.
-
getSuspendTimeout
long getSuspendTimeout()
Get the suspend timeout value in the giventime unit.- Returns:
- suspend timeout value.
-
getSuspendTimeoutUnit
TimeUnit getSuspendTimeoutUnit()
Get the suspendtimeout valuetime unit.- Returns:
- time unit of the suspend timeout value.
-
-