Interface AblyRealtime.Channels

All Superinterfaces:
ReadOnlyMap<String,Channel>
Enclosing class:
AblyRealtime

public static interface AblyRealtime.Channels extends ReadOnlyMap<String,Channel>
A collection of Channels associated with this Ably Realtime instance.
  • Method Details

    • get

      Channel get(String channelName)
      Creates a new Channel object, or returns the existing channel object.

      Spec: RSN3a, RTS3a

      Parameters:
      channelName - The channel name.
      Returns:
      A Channel object.
    • get

      Channel get(String channelName, ChannelOptions channelOptions) throws AblyException
      Creates a new Channel object, with the specified ChannelOptions, or returns the existing channel object.

      Spec: RSN3c, RTS3c

      Parameters:
      channelName - The channel name.
      channelOptions - A ChannelOptions object.
      Returns:
      A Channel object.
      Throws:
      AblyException
    • release

      void release(String channelName)
      Releases a 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

      Parameters:
      channelName - The channel name.