Class FireAndForgetChatResource
java.lang.Object
org.glassfish.jersey.examples.server.async.FireAndForgetChatResource
@Path("async/messaging/fireAndForget")
@Produces("text/plain")
@Consumes("text/plain")
public class FireAndForgetChatResource
extends Object
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.
- Author:
- Marek Potociar
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidpickUpMessage(AsyncResponse ar, String messageId) postMessage(String message)
-
Field Details
-
POST_NOTIFICATION_RESPONSE
- See Also:
-
-
Constructor Details
-
FireAndForgetChatResource
public FireAndForgetChatResource()
-
-
Method Details
-
pickUpMessage
@GET public void pickUpMessage(@Suspended AsyncResponse ar, @QueryParam("id") String messageId) throws InterruptedException - Throws:
InterruptedException
-
postMessage
- Throws:
InterruptedException
-