Package 

Interface AblyRealtime.Channels

    • Method Summary

      Modifier and Type Method Description
      abstract Channel get(String channelName) Creates a new Channel object, or returns the existing channel object.
      abstract Channel get(String channelName, ChannelOptions channelOptions) Creates a new Channel object, with the specified ChannelOptions, or returns the existing channel object.
      abstract 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.
      • Methods inherited from class io.ably.lib.types.ReadOnlyMap

        containsKey, containsValue, entrySet, get, isEmpty, keySet, size, values
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • get

         abstract Channel get(String channelName)

        Creates a new Channel object, or returns the existing channel object.

        Spec: RSN3a, RTS3a

        Parameters:
        channelName - The channel name.
      • release

         abstract 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.