Interface LiveObjectsAdapter

All Known Implementing Classes:
Adapter

public interface LiveObjectsAdapter
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Retrieves the maximum message size allowed for the messages.
    void
    send(@NotNull ProtocolMessage msg, @NotNull CompletionListener listener)
    Sends a protocol message to its intended recipient.
    void
    setChannelSerial(@NotNull String channelName, @NotNull String channelSerial)
    Sets the channel serial for a specific channel.
  • Method Details

    • send

      void send(@NotNull @NotNull ProtocolMessage msg, @NotNull @NotNull CompletionListener listener) throws AblyException
      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.
      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.
    • setChannelSerial

      void setChannelSerial(@NotNull @NotNull String channelName, @NotNull @NotNull String channelSerial)
      Sets the channel serial for a specific channel.
      Parameters:
      channelName - the name of the channel for which to set the serial
      channelSerial - the serial to set for the channel
    • maxMessageSizeLimit

      int maxMessageSizeLimit()
      Retrieves the maximum message size allowed for the messages. This method returns the maximum size in bytes that a message can have.
      Returns:
      the maximum message size limit in bytes.