public class LocalClientSessionChannel extends Object implements org.cometd.bayeux.client.ClientSessionChannel
ClientSessionChannel
local to the server for a LocalSession
.Constructor and Description |
---|
LocalClientSessionChannel() |
Modifier and Type | Method and Description |
---|---|
void |
addListener(org.cometd.bayeux.client.ClientSessionChannel.ClientSessionChannelListener listener) |
Object |
getAttribute(String name) |
Set<String> |
getAttributeNames() |
org.cometd.bayeux.ChannelId |
getChannelId() |
String |
getId() |
List<org.cometd.bayeux.client.ClientSessionChannel.ClientSessionChannelListener> |
getListeners() |
org.cometd.bayeux.client.ClientSession |
getSession() |
List<org.cometd.bayeux.client.ClientSessionChannel.MessageListener> |
getSubscribers() |
boolean |
isBroadcast() |
boolean |
isDeepWild() |
boolean |
isMeta() |
boolean |
isReleased() |
boolean |
isService() |
boolean |
isWild() |
void |
publish(Object data) |
void |
publish(Object data,
org.cometd.bayeux.client.ClientSessionChannel.MessageListener listener) |
boolean |
release() |
Object |
removeAttribute(String name) |
void |
removeListener(org.cometd.bayeux.client.ClientSessionChannel.ClientSessionChannelListener listener) |
void |
setAttribute(String name,
Object value) |
void |
subscribe(org.cometd.bayeux.client.ClientSessionChannel.MessageListener listener) |
void |
unsubscribe() |
void |
unsubscribe(org.cometd.bayeux.client.ClientSessionChannel.MessageListener listener) |
public String getId()
getId
in interface org.cometd.bayeux.Channel
public org.cometd.bayeux.ChannelId getChannelId()
getChannelId
in interface org.cometd.bayeux.Channel
public boolean isMeta()
isMeta
in interface org.cometd.bayeux.Channel
public boolean isService()
isService
in interface org.cometd.bayeux.Channel
public boolean isBroadcast()
isBroadcast
in interface org.cometd.bayeux.Channel
public boolean isWild()
isWild
in interface org.cometd.bayeux.Channel
public boolean isDeepWild()
isDeepWild
in interface org.cometd.bayeux.Channel
public void setAttribute(String name, Object value)
setAttribute
in interface org.cometd.bayeux.Channel
public Object getAttribute(String name)
getAttribute
in interface org.cometd.bayeux.Channel
public Set<String> getAttributeNames()
getAttributeNames
in interface org.cometd.bayeux.Channel
public Object removeAttribute(String name)
removeAttribute
in interface org.cometd.bayeux.Channel
public void addListener(org.cometd.bayeux.client.ClientSessionChannel.ClientSessionChannelListener listener)
addListener
in interface org.cometd.bayeux.client.ClientSessionChannel
public void removeListener(org.cometd.bayeux.client.ClientSessionChannel.ClientSessionChannelListener listener)
removeListener
in interface org.cometd.bayeux.client.ClientSessionChannel
public List<org.cometd.bayeux.client.ClientSessionChannel.ClientSessionChannelListener> getListeners()
getListeners
in interface org.cometd.bayeux.client.ClientSessionChannel
public org.cometd.bayeux.client.ClientSession getSession()
getSession
in interface org.cometd.bayeux.client.ClientSessionChannel
public void publish(Object data)
publish
in interface org.cometd.bayeux.client.ClientSessionChannel
public void publish(Object data, org.cometd.bayeux.client.ClientSessionChannel.MessageListener listener)
publish
in interface org.cometd.bayeux.client.ClientSessionChannel
public void subscribe(org.cometd.bayeux.client.ClientSessionChannel.MessageListener listener)
subscribe
in interface org.cometd.bayeux.client.ClientSessionChannel
public void unsubscribe(org.cometd.bayeux.client.ClientSessionChannel.MessageListener listener)
unsubscribe
in interface org.cometd.bayeux.client.ClientSessionChannel
public void unsubscribe()
unsubscribe
in interface org.cometd.bayeux.client.ClientSessionChannel
public List<org.cometd.bayeux.client.ClientSessionChannel.MessageListener> getSubscribers()
getSubscribers
in interface org.cometd.bayeux.client.ClientSessionChannel
public boolean release()
release
in interface org.cometd.bayeux.client.ClientSessionChannel
public boolean isReleased()
isReleased
in interface org.cometd.bayeux.client.ClientSessionChannel
Copyright © 2005–2016. All rights reserved.