org.glassfish.jersey.examples.server.async
Class BlockingPostChatResource
java.lang.Object
org.glassfish.jersey.examples.server.async.BlockingPostChatResource
@Path(value="async/messaging/blocking")
public class BlockingPostChatResource
- extends java.lang.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 (marek.potociar at oracle.com)
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
POST_NOTIFICATION_RESPONSE
public static final java.lang.String POST_NOTIFICATION_RESPONSE
- See Also:
- Constant Field Values
BlockingPostChatResource
public BlockingPostChatResource()
pickUpMessage
public void pickUpMessage(@Suspended
AsyncResponse ar,
java.lang.String messageId)
postMessage
public void postMessage(@Suspended
AsyncResponse ar,
java.lang.String message)
Copyright © 2007-2012 Oracle Corporation. All Rights Reserved. Use is subject to license terms.