org.glassfish.jersey.examples.server.async
Class FireAndForgetChatResource
java.lang.Object
org.glassfish.jersey.examples.server.async.FireAndForgetChatResource
@Path(value="async/messaging/fireAndForget")
public class FireAndForgetChatResource
- extends java.lang.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 (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
FireAndForgetChatResource
public FireAndForgetChatResource()
pickUpMessage
public void pickUpMessage(@Suspended
AsyncResponse ar,
java.lang.String messageId)
throws java.lang.InterruptedException
- Throws:
java.lang.InterruptedException
postMessage
public java.lang.String postMessage(java.lang.String message)
throws java.lang.InterruptedException
- Throws:
java.lang.InterruptedException
Copyright © 2007-2012 Oracle Corporation. All Rights Reserved. Use is subject to license terms.