org.glassfish.jersey.server.model
Interface Suspendable

All Known Implementing Classes:
ResourceMethod

public interface Suspendable

Jersey model component that is suspendable and may hold suspend-related information.

Author:
Marek Potociar (marek.potociar at oracle.com)

Method Summary
 long getSuspendTimeout()
          Get the suspend timeout value in the given time unit.
 java.util.concurrent.TimeUnit getSuspendTimeoutUnit()
          Get the suspend timeout value time unit.
 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.

getSuspendTimeout

long getSuspendTimeout()
Get the suspend timeout value in the given time unit.

Returns:
suspend timeout value.
See Also:
@Suspend.timeOut()

getSuspendTimeoutUnit

java.util.concurrent.TimeUnit getSuspendTimeoutUnit()
Get the suspend timeout value time unit.

Returns:
time unit of the suspend timeout value.
See Also:
@Suspend.timeUnit()


Copyright © 2007-2012 Oracle Corporation. All Rights Reserved. Use is subject to license terms.