org.glassfish.jersey.examples.server.async
Class LongRunningAsyncOperationResource
java.lang.Object
org.glassfish.jersey.examples.server.async.LongRunningAsyncOperationResource
public class LongRunningAsyncOperationResource
- extends Object
Example resource for long running async operations.
- Author:
- Marek Potociar (marek.potociar at oracle.com)
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NOTIFICATION_RESPONSE
public static final String NOTIFICATION_RESPONSE
- See Also:
- Constant Field Values
LongRunningAsyncOperationResource
public LongRunningAsyncOperationResource()
basicSyncExample
@Path(value="basicSyncExample")
public String basicSyncExample()
suspendViaAnnotationExample
@Suspend(timeOut=15L,
timeUnit=SECONDS)
@Path(value="suspendViaAnnotation")
public void suspendViaAnnotationExample()
suspendViaAnnotationExample2
@Suspend(timeOut=15L,
timeUnit=SECONDS)
@Path(value="suspendViaAnnotation2")
public void suspendViaAnnotationExample2(@Context
ExecutionContext ctx2)
suspendViaContextExample
@Path(value="suspendViaContext")
public String suspendViaContextExample(String query)
timeoutValueConflict_PropagationExample
@Path(value="timeoutPropagated")
@Suspend(timeOut=15000L)
public void timeoutValueConflict_PropagationExample()
timeoutValueConflict_OverridingExample
@Path(value="timeoutOverriden")
@Suspend(timeOut=15000L)
public void timeoutValueConflict_OverridingExample(Long timeOut,
TimeUnit timeUnit)
suspendHandleUsageExample
@Path(value="suspendHandleUsage")
public void suspendHandleUsageExample()
Copyright © 2007-2012 Oracle Corporation. All Rights Reserved. Use is subject to license terms.