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

java.lang.Object
  extended by org.glassfish.jersey.examples.server.async.SimpleLongRunningResource

@Path(value="async/longrunning")
@Produces(value="text/plain")
public class SimpleLongRunningResource
extends Object

Example of a simple resource with a long-running operation executed in a custom application thread.

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

Field Summary
static String NOTIFICATION_RESPONSE
           
 
Constructor Summary
SimpleLongRunningResource()
           
 
Method Summary
 void longGet(AsyncResponse ar)
           
 
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

SimpleLongRunningResource

public SimpleLongRunningResource()
Method Detail

longGet

@GET
public void longGet(@Suspended
                        AsyncResponse ar)


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