Class BlockingPostChatResource
java.lang.Object
org.glassfish.jersey.examples.server.async.BlockingPostChatResource
@Path("async/messaging/blocking")
@Produces("text/plain")
@Consumes("text/plain")
public class BlockingPostChatResource
extends Object
Example of a simple blocking point-to-point messaging resource.
This version of the messaging resource blocks when POSTing a new message until
the message is retrieved.
- Author:
- Marek Potociar
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidpickUpMessage(AsyncResponse ar, String messageId) voidpostMessage(AsyncResponse ar, String message)
-
Field Details
-
POST_NOTIFICATION_RESPONSE
- See Also:
-
-
Constructor Details
-
BlockingPostChatResource
public BlockingPostChatResource()
-
-
Method Details
-
pickUpMessage
-
postMessage
-