|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface SessionChannel
A Channel scoped to a Session.
A channel scoped to a particular ClientSession
, so that subscriptions
and publishes to a SessionChannel are done on behalf of the associated ClientSession
.
A SessionChannel may be for either an absolute channel (eg /foo/bar) or a
wild channel (eg /meta/* or /foo/**).
Nested Class Summary | |
---|---|
static interface |
SessionChannel.MessageListener
|
static interface |
SessionChannel.MetaChannelListener
|
static interface |
SessionChannel.SessionChannelListener
|
static interface |
SessionChannel.SubscriberListener
|
Field Summary |
---|
Fields inherited from interface org.cometd.bayeux.Channel |
---|
META_CONNECT, META_DISCONNECT, META_HANDSHAKE, META_SUBSCRIBE, META_UNSUBSCRIBE |
Method Summary | |
---|---|
void |
addListener(SessionChannel.SessionChannelListener listener)
|
ClientSession |
getSession()
|
void |
publish(java.lang.Object data)
|
void |
publish(java.lang.Object data,
java.lang.Object id)
|
void |
removeListener(SessionChannel.SessionChannelListener listener)
|
void |
subscribe(SessionChannel.SubscriberListener listener)
|
void |
unsubscribe()
|
void |
unsubscribe(SessionChannel.SubscriberListener listener)
|
Methods inherited from interface org.cometd.bayeux.Channel |
---|
getId, isDeepWild, isMeta, isService, isWild |
Method Detail |
---|
void addListener(SessionChannel.SessionChannelListener listener)
void removeListener(SessionChannel.SessionChannelListener listener)
ClientSession getSession()
void publish(java.lang.Object data)
void publish(java.lang.Object data, java.lang.Object id)
void subscribe(SessionChannel.SubscriberListener listener)
void unsubscribe(SessionChannel.SubscriberListener listener)
void unsubscribe()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |