public class AblyRealtime.Channels extends java.util.concurrent.ConcurrentHashMap<java.lang.String,Channel>
java.util.concurrent.ConcurrentHashMap.KeySetView<K,V>| 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, compute, computeIfAbsent, computeIfPresent, contains, containsKey, containsValue, elements, entrySet, equals, forEach, forEach, forEach, forEachEntry, forEachEntry, forEachKey, forEachKey, forEachValue, forEachValue, get, getOrDefault, hashCode, isEmpty, keys, keySet, keySet, mappingCount, merge, newKeySet, newKeySet, put, putAll, putIfAbsent, reduce, reduceEntries, reduceEntries, reduceEntriesToDouble, reduceEntriesToInt, reduceEntriesToLong, reduceKeys, reduceKeys, reduceKeysToDouble, reduceKeysToInt, reduceKeysToLong, reduceToDouble, reduceToInt, reduceToLong, reduceValues, reduceValues, reduceValuesToDouble, reduceValuesToInt, reduceValuesToLong, remove, remove, replace, replace, replaceAll, search, searchEntries, searchKeys, searchValues, size, toString, 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)