public class ContinuationService extends Object
| Constructor and Description |
|---|
ContinuationService(EXoContinuationBayeux bayeux) |
| Modifier and Type | Method and Description |
|---|---|
EXoContinuationClient |
getClient(String id) |
EXoContinuationClient |
getClientByExoId(String exoId) |
Collection<dojox.cometd.Client> |
getClients() |
long |
getTimeout() |
String |
getUserToken(String eXoId) |
boolean |
hasChannel(String channel) |
boolean |
isSubscribe(String eXoId,
String channel) |
void |
sendBroadcastMessage(String channel,
Object data)
Send message to all client that listen channel.
|
void |
sendBroadcastMessage(String channel,
Object data,
String msgId)
Send message to all client that listen channel.
|
void |
sendMessage(String eXoId,
String channel,
Object data)
Send individual message to client.
|
void |
sendMessage(String eXoId,
String channel,
Object data,
String id)
Send individual message to client.
|
public ContinuationService(EXoContinuationBayeux bayeux)
bayeux - public void sendMessage(String eXoId, String channel, Object data)
eXoId - the user IDchannel - the channel you want to send the message. The client must
listen to this channel to receive itdata - the data you want to send to the clientpublic void sendMessage(String eXoId, String channel, Object data, String id)
eXoId - the user IDchannel - the channel you want to send the message. The client must
listen to this channel to receive itdata - the data you want to send to the clientid - the id of message if you set null will be generate automaticallypublic EXoContinuationClient getClientByExoId(String exoId)
exoId - the id of client (exoId).public EXoContinuationClient getClient(String id)
id - the id of client (cometd id)public Collection<dojox.cometd.Client> getClients()
public boolean hasChannel(String channel)
channel - the channel id.public long getTimeout()
public boolean isSubscribe(String eXoId, String channel)
eXoId - the client id (as eXoId).channel - the id of channel.public void sendBroadcastMessage(String channel, Object data)
channel - the id of channel that need send messagedata - that sendpublic void sendBroadcastMessage(String channel, Object data, String msgId)
channel - the id of channel that need send messagedata - that sendmsgId - id of messageCopyright © 2003–2015 eXo Platform SAS. All rights reserved.