public class ServerChannelImpl extends Object implements org.cometd.bayeux.server.ServerChannel
ServerChannel
implementation.Constructor and Description |
---|
ServerChannelImpl(String id,
BayeuxServerImpl server)
Initiate.
|
Modifier and Type | Method and Description |
---|---|
void |
addAuthorizer(org.cometd.bayeux.server.Authorizer authorizer) |
void |
addListener(org.cometd.bayeux.server.ConfigurableServerChannel.ServerChannelListener listener) |
Object |
getAttribute(String name) |
Set<String> |
getAttributeNames() |
List<org.cometd.bayeux.server.Authorizer> |
getAuthorizers() |
org.cometd.bayeux.ChannelId |
getChannelId() |
String |
getId() |
long |
getLazyTimeout() |
List<org.cometd.bayeux.server.ConfigurableServerChannel.ServerChannelListener> |
getListeners() |
Set<org.cometd.bayeux.server.ServerSession> |
getSubscribers() |
boolean |
isBroadcast() |
boolean |
isDeepWild() |
boolean |
isLazy() |
boolean |
isMeta() |
boolean |
isPersistent() |
boolean |
isService() |
boolean |
isWild() |
void |
publish(org.cometd.bayeux.Session from,
Object data,
String id) |
void |
publish(org.cometd.bayeux.Session from,
org.cometd.bayeux.server.ServerMessage.Mutable message) |
void |
remove() |
Object |
removeAttribute(String name) |
void |
removeAuthorizer(org.cometd.bayeux.server.Authorizer authorizer) |
void |
removeListener(org.cometd.bayeux.server.ConfigurableServerChannel.ServerChannelListener listener) |
void |
setAttribute(String name,
Object value) |
void |
setLazy(boolean lazy) |
void |
setLazyTimeout(long lazyTimeout) |
void |
setPersistent(boolean persistent) |
boolean |
subscribe(org.cometd.bayeux.server.ServerSession session) |
boolean |
unsubscribe(org.cometd.bayeux.server.ServerSession session) |
public ServerChannelImpl(String id, BayeuxServerImpl server)
id
- Identifier of this ServerChannel
.server
- BayeuxServerImpl
.public void addListener(org.cometd.bayeux.server.ConfigurableServerChannel.ServerChannelListener listener)
addListener
in interface org.cometd.bayeux.server.ConfigurableServerChannel
public void removeListener(org.cometd.bayeux.server.ConfigurableServerChannel.ServerChannelListener listener)
removeListener
in interface org.cometd.bayeux.server.ConfigurableServerChannel
public List<org.cometd.bayeux.server.ConfigurableServerChannel.ServerChannelListener> getListeners()
getListeners
in interface org.cometd.bayeux.server.ConfigurableServerChannel
public boolean isLazy()
isLazy
in interface org.cometd.bayeux.server.ConfigurableServerChannel
public void setLazy(boolean lazy)
setLazy
in interface org.cometd.bayeux.server.ConfigurableServerChannel
public long getLazyTimeout()
getLazyTimeout
in interface org.cometd.bayeux.server.ConfigurableServerChannel
public void setLazyTimeout(long lazyTimeout)
setLazyTimeout
in interface org.cometd.bayeux.server.ConfigurableServerChannel
public boolean isPersistent()
isPersistent
in interface org.cometd.bayeux.server.ConfigurableServerChannel
public void setPersistent(boolean persistent)
setPersistent
in interface org.cometd.bayeux.server.ConfigurableServerChannel
public void addAuthorizer(org.cometd.bayeux.server.Authorizer authorizer)
addAuthorizer
in interface org.cometd.bayeux.server.ConfigurableServerChannel
public void removeAuthorizer(org.cometd.bayeux.server.Authorizer authorizer)
removeAuthorizer
in interface org.cometd.bayeux.server.ConfigurableServerChannel
public List<org.cometd.bayeux.server.Authorizer> getAuthorizers()
getAuthorizers
in interface org.cometd.bayeux.server.ConfigurableServerChannel
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 Set<org.cometd.bayeux.server.ServerSession> getSubscribers()
getSubscribers
in interface org.cometd.bayeux.server.ServerChannel
public boolean subscribe(org.cometd.bayeux.server.ServerSession session)
subscribe
in interface org.cometd.bayeux.server.ServerChannel
public boolean unsubscribe(org.cometd.bayeux.server.ServerSession session)
unsubscribe
in interface org.cometd.bayeux.server.ServerChannel
public void publish(org.cometd.bayeux.Session from, org.cometd.bayeux.server.ServerMessage.Mutable message)
publish
in interface org.cometd.bayeux.server.ServerChannel
public void publish(org.cometd.bayeux.Session from, Object data, String id)
publish
in interface org.cometd.bayeux.server.ServerChannel
public void remove()
remove
in interface org.cometd.bayeux.server.ServerChannel
Copyright © 2005–2016. All rights reserved.