|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.atmosphere.samples.stomp.pubsub.StompEndpointSample
@StompEndpoint public class StompEndpointSample
An basic annotated service class that use stomp support.
| Constructor Summary | |
|---|---|
StompEndpointSample()
|
|
| Method Summary | |
|---|---|
String |
destination1(String body)
Broadcast message by returning a String. |
String |
destination2(String body)
Broadcast message by returning a String. |
String |
destination3(String body)
Broadcast message by returning a String. |
void |
onHeartbeat(org.atmosphere.cpr.AtmosphereResourceEvent event)
The heartbeat listener. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public StompEndpointSample()
| Method Detail |
|---|
public void onHeartbeat(org.atmosphere.cpr.AtmosphereResourceEvent event)
event - the event
@StompService(destination="/destination-1")
public String destination1(String body)
throws IOException
Broadcast message by returning a String.
body - the message body
IOException - if body can't be read
@StompService(destination="/destination-2")
public String destination2(String body)
throws IOException
Broadcast message by returning a String.
body - the message body
IOException - if body can't be read
@StompService(destination="/destination-3")
public String destination3(String body)
throws IOException
Broadcast message by returning a String.
body - the message body
IOException - if body can't be read
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||