Class ContinuationServiceLocalDelegate
- java.lang.Object
-
- org.exoplatform.ws.frameworks.cometd.transport.ContinuationServiceLocalDelegate
-
- All Implemented Interfaces:
ContinuationServiceDelegate
public class ContinuationServiceLocalDelegate extends Object implements ContinuationServiceDelegate
Created by The eXo Platform SAS.- Version:
- $Id: $
- Author:
- Vitaly Parfonov
-
-
Constructor Summary
Constructors Constructor Description ContinuationServiceLocalDelegate(ContinuationService continuationService)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BooleanisSubscribed(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 Detail
-
ContinuationServiceLocalDelegate
public ContinuationServiceLocalDelegate(ContinuationService continuationService)
-
-
Method Detail
-
isSubscribed
public Boolean isSubscribed(String exoID, String channel)
- Specified by:
isSubscribedin interfaceContinuationServiceDelegate- Parameters:
exoID- the client id.channel- the channel id- Returns:
- true if client subscribed on channel.
-
sendMessage
public void sendMessage(String exoId, String channel, String message, String msgId)
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
public void sendBroadcastMessage(String channel, String message, String msgId)
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.
-
-