org.glassfish.jersey.examples.server.async
Class LongRunningAsyncOperationResource

java.lang.Object
  extended by 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)

Field Summary
static String NOTIFICATION_RESPONSE
           
 
Constructor Summary
LongRunningAsyncOperationResource()
           
 
Method Summary
 String basicSyncExample()
           
 void suspendHandleUsageExample()
           
 void suspendViaAnnotationExample()
           
 void suspendViaAnnotationExample2(javax.ws.rs.core.ExecutionContext ctx2)
           
 String suspendViaContextExample(String query)
           
 void timeoutValueConflict_OverridingExample(Long timeOut, TimeUnit timeUnit)
           
 void timeoutValueConflict_PropagationExample()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NOTIFICATION_RESPONSE

public static final String NOTIFICATION_RESPONSE
See Also:
Constant Field Values
Constructor Detail

LongRunningAsyncOperationResource

public LongRunningAsyncOperationResource()
Method Detail

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
                                                             javax.ws.rs.core.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.