org.glassfish.jersey.examples.server.async.managed
Class SimpleJerseyExecutorManagedLongRunningResource
java.lang.Object
org.glassfish.jersey.examples.server.async.managed.SimpleJerseyExecutorManagedLongRunningResource
@Path(value="managedasync/longrunning")
@Produces(value="text/plain")
public class SimpleJerseyExecutorManagedLongRunningResource
- extends Object
Example of a simple resource with a long-running operation executed in a
custom Jersey container request processing thread.
- Author:
- Marek Potociar (marek.potociar at oracle.com)
|
Method Summary |
void |
longGet(javax.ws.rs.container.AsyncResponse ar,
int requestId)
|
| 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
SimpleJerseyExecutorManagedLongRunningResource
public SimpleJerseyExecutorManagedLongRunningResource()
longGet
@GET
@ManagedAsync
public void longGet(@Suspended
javax.ws.rs.container.AsyncResponse ar,
@QueryParam(value="id")
int requestId)
Copyright © 2007-2014, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.