org.exoplatform.ws.frameworks.cometd.transport
Class ContinuationServiceRemoteDelegate
java.lang.Object
org.exoplatform.ws.frameworks.cometd.transport.ContinuationServiceRemoteDelegate
- All Implemented Interfaces:
- ContinuationServiceDelegate
public class ContinuationServiceRemoteDelegate
- extends java.lang.Object
- implements ContinuationServiceDelegate
Created by The eXo Platform SAS.
- Version:
- $Id: $
- Author:
- Vitaly Parfonov
|
Method Summary |
java.lang.Boolean |
isSubscribed(java.lang.String exoID,
java.lang.String channel)
|
void |
sendBroadcastMessage(java.lang.String channel,
java.lang.String message,
java.lang.String msgId)
Send public message to all that subscribed on channel. |
void |
sendMessage(java.lang.String exoID,
java.lang.String channel,
java.lang.String message,
java.lang.String msgId)
Send individual message to client by channel. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ContinuationServiceRemoteDelegate
public ContinuationServiceRemoteDelegate(LoadBalancer loadBalancer)
isSubscribed
public java.lang.Boolean isSubscribed(java.lang.String exoID,
java.lang.String channel)
-
- Specified by:
isSubscribed in interface ContinuationServiceDelegate
- Parameters:
exoID - the client id.channel - the channel id
- Returns:
- true if client subscribed on channel.
sendMessage
public void sendMessage(java.lang.String exoID,
java.lang.String channel,
java.lang.String message,
java.lang.String msgId)
- Send individual message to client by channel.
- Specified by:
sendMessage in interface ContinuationServiceDelegate
- 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(java.lang.String channel,
java.lang.String message,
java.lang.String msgId)
- Send public message to all that subscribed on channel.
- Specified by:
sendBroadcastMessage in interface ContinuationServiceDelegate
- Parameters:
channel - the channel id.message - the message (JSON format).msgId - the id of message.
Copyright © 2010 eXo Platform SAS. All Rights Reserved.