Class Adapter

java.lang.Object
io.ably.lib.objects.Adapter
All Implemented Interfaces:
ObjectsAdapter

public class Adapter extends Object implements ObjectsAdapter
  • Constructor Details

    • Adapter

      public Adapter(@NotNull @NotNull AblyRealtime ably)
  • Method Details

    • getClientOptions

      @NotNull public @NotNull ClientOptions getClientOptions()
      Description copied from interface: ObjectsAdapter
      Retrieves the client options configured for the Ably client. Used to access client configuration parameters such as echoMessages setting that affect the behavior of Objects operations.
      Specified by:
      getClientOptions in interface ObjectsAdapter
      Returns:
      the client options containing configuration parameters
    • getConnectionManager

      @NotNull public @NotNull ConnectionManager getConnectionManager()
      Description copied from interface: ObjectsAdapter
      Retrieves the connection manager for handling connection state and operations. Used to check connection status, obtain error information, and manage message transmission across the Ably connection.
      Specified by:
      getConnectionManager in interface ObjectsAdapter
      Returns:
      the connection manager instance
    • getTime

      public long getTime() throws AblyException
      Description copied from interface: ObjectsAdapter
      Retrieves the current time in milliseconds from the Ably server. Spec: RTO16
      Specified by:
      getTime in interface ObjectsAdapter
      Throws:
      AblyException
    • getChannel

      @NotNull public @NotNull ChannelBase getChannel(@NotNull @NotNull String channelName) throws AblyException
      Description copied from interface: ObjectsAdapter
      Retrieves the channel instance for the specified channel name. If the channel does not exist, an AblyException is thrown.
      Specified by:
      getChannel in interface ObjectsAdapter
      Parameters:
      channelName - the name of the channel to retrieve
      Returns:
      the ChannelBase instance for the specified channel
      Throws:
      AblyException - if the channel is not found or cannot be retrieved