org.atmosphere.samples.di.guice
Class MessageResource
java.lang.Object
org.atmosphere.samples.di.guice.MessageResource
public class MessageResource
- extends Object
- Since:
- 0.7
- Author:
- Mathieu Carbou
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MessageResource
public MessageResource()
listen
@Suspend(outputComments=true,
resumeOnBroadcast=false,
listeners=EventsLogger.class)
public Broadcastable listen(String topic)
throws org.codehaus.jettison.json.JSONException
- Throws:
org.codehaus.jettison.json.JSONException
publish
public Broadcastable publish(String topic,
String from,
String message)
throws org.codehaus.jettison.json.JSONException
- Throws:
org.codehaus.jettison.json.JSONException
Copyright © 2013. All Rights Reserved.