public class AblyRealtime.Channels extends java.util.HashMap<java.lang.String,Channel>
| Constructor and Description |
|---|
Channels() |
| Modifier and Type | Method and Description |
|---|---|
Channel |
get(java.lang.String channelName)
Get the named channel; if it does not already exist,
create it with default options.
|
Channel |
get(java.lang.String channelName,
ChannelOptions channelOptions)
Get the named channel and set the given options, creating it
if it does not already exist.
|
void |
onChannelMessage(ITransport transport,
ProtocolMessage msg) |
void |
release(java.lang.String channelName)
Remove this channel from this AblyRealtime instance.
|
void |
suspendAll(ErrorInfo error,
boolean notifyStateChange) |
clear, clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, get, getOrDefault, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, valuespublic Channel get(java.lang.String channelName)
channelName - the name of the channelpublic Channel get(java.lang.String channelName, ChannelOptions channelOptions) throws AblyException
channelName - the name of the channelchannelOptions - the options to set (null to clear options on an existing channel)AblyExceptionpublic void release(java.lang.String channelName)
channelName - public void onChannelMessage(ITransport transport, ProtocolMessage msg)
public void suspendAll(ErrorInfo error, boolean notifyStateChange)