|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.glassfish.jersey.examples.server.async.LongRunningEchoResource
@Path(value="long-running") public class LongRunningEchoResource
Example of a simple resource with a long-running operation executed in a custom application thread.
| Constructor Summary | |
|---|---|
LongRunningEchoResource()
|
|
| Method Summary | |
|---|---|
void |
asyncEcho(java.lang.String echo,
AsyncResponse ar)
Asynchronously echo the last path segment after sleeping for a long time. |
java.lang.String |
syncEcho(java.lang.String echo)
Synchronously echo the last path segment after sleeping for a long time. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LongRunningEchoResource()
| Method Detail |
|---|
@Path(value="sync/{echo}")
public java.lang.String syncEcho(java.lang.String echo)
echo - message to echo.
@Path(value="async/{echo}")
public void asyncEcho(java.lang.String echo,
@Suspended
AsyncResponse ar)
echo - message to echo.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||