org.glassfish.jersey.examples.serverasync
Class MessagingResource

java.lang.Object
  extended by org.glassfish.jersey.examples.serverasync.MessagingResource

@Path(value="message")
public class MessagingResource
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)

Constructor Summary
MessagingResource()
           
 
Method Summary
 void pickUpMessage(AsyncResponse ar)
           
 void postMessage(AsyncResponse ar, java.lang.String message)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MessagingResource

public MessagingResource()
Method Detail

pickUpMessage

public void pickUpMessage(@Suspended
                          AsyncResponse ar)

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.