|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.glassfish.jersey.examples.server.async.managed.ChatResource
@Path(value="chat") @Produces(value="application/json") public class ChatResource
Example of a simple fire&forget point-to-point messaging resource. This version of the messaging resource does not block when POSTing a new message.
| Constructor Summary | |
|---|---|
ChatResource()
|
|
| Method Summary | |
|---|---|
void |
getMessage(AsyncResponse ar)
|
java.lang.String |
postMessage(Message message)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ChatResource()
| Method Detail |
|---|
@GET
@ManagedAsync
public void getMessage(@Suspended
AsyncResponse ar)
throws java.lang.InterruptedException
java.lang.InterruptedException
@POST
@ManagedAsync
public java.lang.String postMessage(Message message)
throws java.lang.InterruptedException
java.lang.InterruptedException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||