org.cometd.bayeux.Channel, org.cometd.bayeux.server.ConfigurableServerChannel, org.cometd.bayeux.server.ServerChannel, org.eclipse.jetty.util.component.Dumpablepublic class ServerChannelImpl
extends java.lang.Object
implements org.cometd.bayeux.server.ServerChannel, org.eclipse.jetty.util.component.Dumpable
| Modifier | Constructor | Description |
|---|---|---|
protected |
ServerChannelImpl(BayeuxServerImpl bayeux,
org.cometd.bayeux.ChannelId id) |
| Modifier and Type | Method | Description |
|---|---|---|
void |
addAuthorizer(org.cometd.bayeux.server.Authorizer authorizer) |
|
void |
addListener(org.cometd.bayeux.server.ConfigurableServerChannel.ServerChannelListener listener) |
|
protected java.util.List<org.cometd.bayeux.server.Authorizer> |
authorizers() |
|
java.lang.String |
dump() |
|
void |
dump(java.lang.Appendable out,
java.lang.String indent) |
|
java.lang.Object |
getAttribute(java.lang.String name) |
|
java.util.Set<java.lang.String> |
getAttributeNames() |
|
java.util.List<org.cometd.bayeux.server.Authorizer> |
getAuthorizers() |
|
org.cometd.bayeux.ChannelId |
getChannelId() |
|
java.lang.String |
getId() |
|
long |
getLazyTimeout() |
|
java.util.List<org.cometd.bayeux.server.ConfigurableServerChannel.ServerChannelListener> |
getListeners() |
|
java.util.Set<org.cometd.bayeux.server.ServerSession> |
getSubscribers() |
|
boolean |
isBroadcast() |
|
boolean |
isDeepWild() |
|
boolean |
isLazy() |
|
boolean |
isMeta() |
|
boolean |
isPersistent() |
|
boolean |
isService() |
|
boolean |
isWild() |
|
protected java.util.List<org.cometd.bayeux.server.ConfigurableServerChannel.ServerChannelListener> |
listeners() |
|
void |
publish(org.cometd.bayeux.Session from,
java.lang.Object data,
org.cometd.bayeux.Promise<java.lang.Boolean> promise) |
|
void |
publish(org.cometd.bayeux.Session from,
org.cometd.bayeux.server.ServerMessage.Mutable mutable,
org.cometd.bayeux.Promise<java.lang.Boolean> promise) |
|
void |
remove() |
|
java.lang.Object |
removeAttribute(java.lang.String name) |
|
void |
removeAuthorizer(org.cometd.bayeux.server.Authorizer authorizer) |
|
void |
removeListener(org.cometd.bayeux.server.ConfigurableServerChannel.ServerChannelListener listener) |
|
void |
setAttribute(java.lang.String name,
java.lang.Object value) |
|
void |
setLazy(boolean lazy) |
|
void |
setLazyTimeout(long lazyTimeout) |
|
void |
setPersistent(boolean persistent) |
|
boolean |
subscribe(org.cometd.bayeux.server.ServerSession session) |
|
protected boolean |
subscribe(ServerSessionImpl session,
org.cometd.bayeux.server.ServerMessage message) |
|
java.util.Set<org.cometd.bayeux.server.ServerSession> |
subscribers() |
|
protected void |
sweep() |
|
java.lang.String |
toString() |
|
boolean |
unsubscribe(org.cometd.bayeux.server.ServerSession session) |
|
protected boolean |
unsubscribe(ServerSessionImpl session,
org.cometd.bayeux.server.ServerMessage message) |
protected ServerChannelImpl(BayeuxServerImpl bayeux, org.cometd.bayeux.ChannelId id)
public boolean subscribe(org.cometd.bayeux.server.ServerSession session)
subscribe in interface org.cometd.bayeux.server.ServerChannelprotected boolean subscribe(ServerSessionImpl session, org.cometd.bayeux.server.ServerMessage message)
public boolean unsubscribe(org.cometd.bayeux.server.ServerSession session)
unsubscribe in interface org.cometd.bayeux.server.ServerChannelprotected boolean unsubscribe(ServerSessionImpl session, org.cometd.bayeux.server.ServerMessage message)
public java.util.Set<org.cometd.bayeux.server.ServerSession> getSubscribers()
getSubscribers in interface org.cometd.bayeux.server.ServerChannelpublic java.util.Set<org.cometd.bayeux.server.ServerSession> subscribers()
public boolean isBroadcast()
isBroadcast in interface org.cometd.bayeux.Channelpublic boolean isDeepWild()
isDeepWild in interface org.cometd.bayeux.Channelpublic boolean isLazy()
isLazy in interface org.cometd.bayeux.server.ConfigurableServerChannelpublic boolean isPersistent()
isPersistent in interface org.cometd.bayeux.server.ConfigurableServerChannelpublic boolean isWild()
isWild in interface org.cometd.bayeux.Channelpublic void setLazy(boolean lazy)
setLazy in interface org.cometd.bayeux.server.ConfigurableServerChannelpublic long getLazyTimeout()
getLazyTimeout in interface org.cometd.bayeux.server.ConfigurableServerChannelpublic void setLazyTimeout(long lazyTimeout)
setLazyTimeout in interface org.cometd.bayeux.server.ConfigurableServerChannelpublic void setPersistent(boolean persistent)
setPersistent in interface org.cometd.bayeux.server.ConfigurableServerChannelpublic void addListener(org.cometd.bayeux.server.ConfigurableServerChannel.ServerChannelListener listener)
addListener in interface org.cometd.bayeux.server.ConfigurableServerChannelpublic void removeListener(org.cometd.bayeux.server.ConfigurableServerChannel.ServerChannelListener listener)
removeListener in interface org.cometd.bayeux.server.ConfigurableServerChannelpublic java.util.List<org.cometd.bayeux.server.ConfigurableServerChannel.ServerChannelListener> getListeners()
getListeners in interface org.cometd.bayeux.server.ConfigurableServerChannelprotected java.util.List<org.cometd.bayeux.server.ConfigurableServerChannel.ServerChannelListener> listeners()
public org.cometd.bayeux.ChannelId getChannelId()
getChannelId in interface org.cometd.bayeux.Channelpublic java.lang.String getId()
getId in interface org.cometd.bayeux.Channelpublic boolean isMeta()
isMeta in interface org.cometd.bayeux.Channelpublic boolean isService()
isService in interface org.cometd.bayeux.Channelpublic void publish(org.cometd.bayeux.Session from,
org.cometd.bayeux.server.ServerMessage.Mutable mutable,
org.cometd.bayeux.Promise<java.lang.Boolean> promise)
publish in interface org.cometd.bayeux.server.ServerChannelpublic void publish(org.cometd.bayeux.Session from,
java.lang.Object data,
org.cometd.bayeux.Promise<java.lang.Boolean> promise)
publish in interface org.cometd.bayeux.server.ServerChannelprotected void sweep()
public void remove()
remove in interface org.cometd.bayeux.server.ServerChannelpublic void setAttribute(java.lang.String name,
java.lang.Object value)
setAttribute in interface org.cometd.bayeux.Channelpublic java.lang.Object getAttribute(java.lang.String name)
getAttribute in interface org.cometd.bayeux.Channelpublic java.util.Set<java.lang.String> getAttributeNames()
getAttributeNames in interface org.cometd.bayeux.Channelpublic java.lang.Object removeAttribute(java.lang.String name)
removeAttribute in interface org.cometd.bayeux.Channelpublic void addAuthorizer(org.cometd.bayeux.server.Authorizer authorizer)
addAuthorizer in interface org.cometd.bayeux.server.ConfigurableServerChannelpublic void removeAuthorizer(org.cometd.bayeux.server.Authorizer authorizer)
removeAuthorizer in interface org.cometd.bayeux.server.ConfigurableServerChannelpublic java.util.List<org.cometd.bayeux.server.Authorizer> getAuthorizers()
getAuthorizers in interface org.cometd.bayeux.server.ConfigurableServerChannelprotected java.util.List<org.cometd.bayeux.server.Authorizer> authorizers()
public java.lang.String dump()
dump in interface org.eclipse.jetty.util.component.Dumpablepublic void dump(java.lang.Appendable out,
java.lang.String indent)
throws java.io.IOException
dump in interface org.eclipse.jetty.util.component.Dumpablejava.io.IOExceptionpublic java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2008–2017 The CometD Project. All rights reserved.