Class MessageOperationSerializer

java.lang.Object
io.ably.lib.types.MessageOperationSerializer

public class MessageOperationSerializer extends Object
MessageOperationSerializer: internal Utility class to serialize message update/delete requests in different formats.
  • Constructor Details

    • MessageOperationSerializer

      public MessageOperationSerializer()
  • Method Details

    • asJsonRequest

      public static HttpCore.RequestBody asJsonRequest(Message message, MessageOperation operation, ChannelOptions channelOptions) throws AblyException
      Creates a JSON request body for a message update/delete operation.
      Parameters:
      message - The message containing the update/delete data
      operation - The MessageOperation metadata
      channelOptions - Channel options for encoding
      Returns:
      HttpCore.RequestBody for the request
      Throws:
      AblyException - If encoding fails
    • asMsgPackRequest

      public static HttpCore.RequestBody asMsgPackRequest(Message message, MessageOperation operation, ChannelOptions channelOptions) throws AblyException
      Creates a MessagePack request body for a message update/delete operation.
      Parameters:
      message - The message containing the update/delete data
      operation - The MessageOperation metadata
      channelOptions - Channel options for encoding
      Returns:
      HttpCore.RequestBody for the request
      Throws:
      AblyException - If encoding fails