org.glassfish.jersey.examples.server.async
Class BlockingPostChatResource

java.lang.Object
  extended by 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)

Field Summary
static java.lang.String POST_NOTIFICATION_RESPONSE
           
 
Constructor Summary
BlockingPostChatResource()
           
 
Method Summary
 void pickUpMessage(java.lang.String messageId)
           
 void postMessage(java.lang.String message)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

POST_NOTIFICATION_RESPONSE

public static final java.lang.String POST_NOTIFICATION_RESPONSE
See Also:
Constant Field Values
Constructor Detail

BlockingPostChatResource

public BlockingPostChatResource()
Method Detail

pickUpMessage

@Suspend
public void pickUpMessage(java.lang.String messageId)

postMessage

public void postMessage(java.lang.String message)


Copyright © 2007-2012 Oracle Corporation. All Rights Reserved. Use is subject to license terms.