public static interface AblyRealtime.Channels extends ReadOnlyMap<java.lang.String,Channel>
| Modifier and Type | Method and Description |
|---|---|
Channel |
get(java.lang.String channelName)
Creates a new
Channel object, or returns the existing channel object. |
Channel |
get(java.lang.String channelName,
ChannelOptions channelOptions)
Creates a new
Channel object, with the specified ChannelOptions, or returns the existing channel object. |
void |
release(java.lang.String channelName)
Releases a
Channel object, deleting it, and enabling it to be garbage collected. |
containsKey, containsValue, entrySet, get, isEmpty, keySet, size, valuesChannel get(java.lang.String channelName)
Channel object, or returns the existing channel object.
Spec: RSN3a, RTS3a
channelName - The channel name.Channel object.Channel get(java.lang.String channelName, ChannelOptions channelOptions) throws AblyException
Channel object, with the specified ChannelOptions, or returns the existing channel object.
Spec: RSN3c, RTS3c
channelName - The channel name.channelOptions - A ChannelOptions object.Channel object.AblyExceptionvoid release(java.lang.String channelName)
Channel object, deleting it, and enabling it to be garbage collected.
It also removes any listeners associated with the channel.
To release a channel, the ChannelState must be INITIALIZED, DETACHED, or FAILED.
Spec: RSN4, RTS4
channelName - The channel name.