Class Adapter

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

public class Adapter extends Object implements LiveObjectsAdapter
  • Constructor Details

    • Adapter

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

    • setChannelSerial

      public void setChannelSerial(@NotNull @NotNull String channelName, @NotNull @NotNull String channelSerial)
      Description copied from interface: LiveObjectsAdapter
      Sets the channel serial for a specific channel.
      Specified by:
      setChannelSerial in interface LiveObjectsAdapter
      Parameters:
      channelName - the name of the channel for which to set the serial
      channelSerial - the serial to set for the channel
    • send

      public void send(@NotNull @NotNull ProtocolMessage msg, @NotNull @NotNull CompletionListener listener) throws AblyException
      Description copied from interface: LiveObjectsAdapter
      Sends a protocol message to its intended recipient. This method transmits a protocol message, allowing for queuing events if necessary, and notifies the provided listener upon the success or failure of the send operation.
      Specified by:
      send in interface LiveObjectsAdapter
      Parameters:
      msg - the protocol message to send.
      listener - a listener to be notified of the success or failure of the send operation.
      Throws:
      AblyException - if an error occurs during the send operation.
    • maxMessageSizeLimit

      public int maxMessageSizeLimit()
      Description copied from interface: LiveObjectsAdapter
      Retrieves the maximum message size allowed for the messages. This method returns the maximum size in bytes that a message can have.
      Specified by:
      maxMessageSizeLimit in interface LiveObjectsAdapter
      Returns:
      the maximum message size limit in bytes.