Interface Suspendable
-
- All Known Implementing Classes:
ResourceMethod
public interface Suspendable
Jersey model component that is suspendable and may hold suspend-related information.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description long
getSuspendTimeout()
Get the suspend timeout value in the giventime unit
.java.util.concurrent.TimeUnit
getSuspendTimeoutUnit()
Get the suspendtimeout value
time unit.boolean
isManagedAsyncDeclared()
Check if the component is marked to be executed asynchronously by using an internal Jerseyexecutor service
.boolean
isSuspendDeclared()
Check if the component is marked for suspending.
-
-
-
Method Detail
-
isSuspendDeclared
boolean isSuspendDeclared()
Check if the component is marked for suspending.- Returns:
true
if the component is marked for suspending,false
otherwise.
-
isManagedAsyncDeclared
boolean isManagedAsyncDeclared()
Check if the component is marked to be executed asynchronously by using an internal Jerseyexecutor service
.- Returns:
true
if the component is marked for managed asynchronous execution,false
otherwise.
-
getSuspendTimeout
long getSuspendTimeout()
Get the suspend timeout value in the giventime unit
.- Returns:
- suspend timeout value.
-
getSuspendTimeoutUnit
java.util.concurrent.TimeUnit getSuspendTimeoutUnit()
Get the suspendtimeout value
time unit.- Returns:
- time unit of the suspend timeout value.
-
-