|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Channel
A Bayeux Channel.
A Channel represents a routing path for messages to Clients. Clients may subscribe to a channel and will be delivered all messages published to the channel.
Method Summary | |
---|---|
void |
addDataFilter(DataFilter filter)
|
void |
addListener(ChannelListener listener)
|
java.util.Collection<DataFilter> |
getDataFilters()
|
java.lang.String |
getId()
|
int |
getSubscriberCount()
|
java.util.Collection<Client> |
getSubscribers()
|
boolean |
isPersistent()
Is the channel persistent. |
void |
publish(Client fromClient,
java.lang.Object data,
java.lang.String msgId)
Publish a message. |
boolean |
remove()
|
DataFilter |
removeDataFilter(DataFilter filter)
|
void |
setPersistent(boolean persistent)
|
void |
subscribe(Client subscriber)
Subscribe to a channel. |
void |
unsubscribe(Client subscriber)
Unsubscribe to a channel |
Method Detail |
---|
boolean remove()
java.lang.String getId()
void publish(Client fromClient, java.lang.Object data, java.lang.String msgId)
fromClient
- From client or nulldata
- The message datamsgId
- The message ID or nullboolean isPersistent()
void setPersistent(boolean persistent)
persistent
- true if the Channel will persist without any subscription.void subscribe(Client subscriber)
toChannel
- subscriber
- void unsubscribe(Client subscriber)
toChannel
- subscriber
- java.util.Collection<Client> getSubscribers()
int getSubscriberCount()
void addDataFilter(DataFilter filter)
DataFilter removeDataFilter(DataFilter filter)
java.util.Collection<DataFilter> getDataFilters()
void addListener(ChannelListener listener)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |