|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ConfigurableServerChannel
A ConfigurableServerChannel offers an API that can be used to
configure ServerChannels at creation time.
ServerChannels may be created concurrently via
BayeuxServer#createIfAbsent(String, Initializer...) and it is
important that the creation of a channel is atomic so that its
configuration is executed only once, and so that it is guaranteed that
it happens before any message can be published or received by the channel.
| Nested Class Summary | |
|---|---|
static interface |
ConfigurableServerChannel.Initializer
A listener interface by means of which listeners can atomically set the initial configuration of a channel. |
| Field Summary |
|---|
| Fields inherited from interface org.cometd.bayeux.Channel |
|---|
META, META_CONNECT, META_DISCONNECT, META_HANDSHAKE, META_SUBSCRIBE, META_UNSUBSCRIBE |
| Method Summary | |
|---|---|
void |
addAuthorizer(Authorizer authorizer)
Adds the given Authorizer that grants or denies operations on this channel. |
void |
addListener(ServerChannel.ServerChannelListener listener)
|
List<Authorizer> |
getAuthorizers()
|
List<ServerChannel.ServerChannelListener> |
getListeners()
|
boolean |
isLazy()
|
boolean |
isPersistent()
|
void |
removeAuthorizer(Authorizer authorizer)
Removes the given Authorizer. |
void |
removeListener(ServerChannel.ServerChannelListener listener)
|
void |
setLazy(boolean lazy)
A lazy channel marks all messages published to it as lazy. |
void |
setPersistent(boolean persistent)
A persistent channel is not removed when the last subscription is removed |
| Methods inherited from interface org.cometd.bayeux.Channel |
|---|
getAttribute, getAttributeNames, getChannelId, getId, isDeepWild, isMeta, isService, isWild, removeAttribute, setAttribute |
| Method Detail |
|---|
void addListener(ServerChannel.ServerChannelListener listener)
listener - the listener to add#removeListener(ServerChannelListener)void removeListener(ServerChannel.ServerChannelListener listener)
listener - the listener to remove#addListener(ServerChannelListener)List<ServerChannel.ServerChannelListener> getListeners()
#addListener(ServerChannelListener)boolean isLazy()
setLazy(boolean)void setLazy(boolean lazy)
lazy - whether the channel is lazyisLazy()boolean isPersistent()
setPersistent(boolean)void setPersistent(boolean persistent)
persistent - whether the channel is persistentisPersistent()void addAuthorizer(Authorizer authorizer)
Adds the given Authorizer that grants or denies operations on this channel.
Operations must be granted by at least one Authorizer and must not be denied by any.
authorizer - the Authorizer to addremoveAuthorizer(Authorizer),
Authorizervoid removeAuthorizer(Authorizer authorizer)
Removes the given Authorizer.
authorizer - the Authorizer to removeaddAuthorizer(Authorizer)List<Authorizer> getAuthorizers()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||