Class ContinuationServiceRemoteDelegate
java.lang.Object
org.exoplatform.ws.frameworks.cometd.transport.ContinuationServiceRemoteDelegate
- All Implemented Interfaces:
ContinuationServiceDelegate
public class ContinuationServiceRemoteDelegate
extends Object
implements ContinuationServiceDelegate
-
Constructor Summary
ConstructorsConstructorDescriptionContinuationServiceRemoteDelegate(LoadBalancer loadBalancer, org.exoplatform.container.ExoContainerContext context) -
Method Summary
Modifier and TypeMethodDescriptionisSubscribed(String exoID, String channel) voidsendBroadcastMessage(String channel, String message, String msgId) Send public message to all that subscribed on channel.voidsendMessage(String exoID, String channel, String message, String msgId) Send individual message to client by channel.
-
Constructor Details
-
ContinuationServiceRemoteDelegate
public ContinuationServiceRemoteDelegate(LoadBalancer loadBalancer, org.exoplatform.container.ExoContainerContext context)
-
-
Method Details
-
isSubscribed
- Specified by:
isSubscribedin interfaceContinuationServiceDelegate- Parameters:
exoID- the client id.channel- the channel id- Returns:
- true if client subscribed on channel.
-
sendMessage
Send individual message to client by channel.- Specified by:
sendMessagein interfaceContinuationServiceDelegate- Parameters:
exoID- the client id.channel- the channel that listen client.message- the message (JSON format).msgId- the id of message.
-
sendBroadcastMessage
Send public message to all that subscribed on channel.- Specified by:
sendBroadcastMessagein interfaceContinuationServiceDelegate- Parameters:
channel- the channel id.message- the message (JSON format).msgId- the id of message.
-