@StompEndpoint
public class StompEndpointSample
extends java.lang.Object
An basic annotated service class that use stomp support.
| Constructor and Description |
|---|
StompEndpointSample() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
destination1(java.lang.String body)
Broadcast message by returning a
String. |
java.lang.String |
destination2(java.lang.String body)
Broadcast message by returning a
String. |
java.lang.String |
destination3(java.lang.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 java.lang.String destination1(java.lang.String body)
throws java.io.IOException
Broadcast message by returning a String.
body - the message bodyjava.io.IOException - if body can't be read@StompService(destination="/destination-2")
public java.lang.String destination2(java.lang.String body)
throws java.io.IOException
Broadcast message by returning a String.
body - the message bodyjava.io.IOException - if body can't be read@StompService(destination="/destination-3")
public java.lang.String destination3(java.lang.String body)
throws java.io.IOException
Broadcast message by returning a String.
body - the message bodyjava.io.IOException - if body can't be readCopyright © 2018. All Rights Reserved.