Class LocalMessagesByTimeQueryParams

    • Constructor Detail

      • LocalMessagesByTimeQueryParams

        LocalMessagesByTimeQueryParams(ChannelIdentifier channelIdentifier)
        Parameters:
        channelIdentifier - The target channel identifier to query messages from
    • Method Detail

      • getSentTime

         final Long getSentTime()

        Reference sent time (milliseconds) to start the query from.

        Messages will be fetched relative to this timestamp based on the query direction. Default is 0, which starts from the latest message.

      • setSentTime

         final Unit setSentTime(Long sentTime)

        Reference sent time (milliseconds) to start the query from.

        Messages will be fetched relative to this timestamp based on the query direction. Default is 0, which starts from the latest message.

      • isAscending

         final Boolean isAscending()

        Whether ascending by time (From Old to New).

        • true: Ascending, fetches messages newer than sentTime

        • false: Descending (Default), fetches messages older than sentTime

      • setAscending

         final Unit setAscending(Boolean isAscending)

        Whether ascending by time (From Old to New).

        • true: Ascending, fetches messages newer than sentTime

        • false: Descending (Default), fetches messages older than sentTime

      • getMessageTypes

         final List<String> getMessageTypes()

        Message type filters (object names).

        When set, only messages of the specified types are returned. When null or empty, all message types are returned.

      • setMessageTypes

         final Unit setMessageTypes(List<String> messageTypes)

        Message type filters (object names).

        When set, only messages of the specified types are returned. When null or empty, all message types are returned.

      • getPageSize

         final Integer getPageSize()

        Number of messages per page. Default is 20.

      • setPageSize

         final Unit setPageSize(Integer pageSize)

        Number of messages per page. Default is 20.