@StompEndpoint public class StompEndpointSample extends Object
An basic annotated service class that use stomp support.
| Constructor and Description |
|---|
StompEndpointSample() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
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 bodyIOException - 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 bodyIOException - 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 bodyIOException - if body can't be readCopyright © 2015. All Rights Reserved.