Class MucEnterConfiguration.Builder

    • Method Detail

      • withPresence

        @Deprecated
        public MucEnterConfiguration.Builder withPresence​(Presence presence)
        Deprecated.
        Set the presence used to join the MUC room.

        The 'to' value of the given presence will be overridden and the given presence must be of type 'available', otherwise an IllegalArgumentException will be thrown.

        Parameters:
        presence - TODO javadoc me please
        Returns:
        a reference to this builder.
      • withPresence

        public MucEnterConfiguration.Builder withPresence​(Consumer<? super PresenceBuilder> presenceBuilderConsumer)
        Set the presence used to join the MUC room.

        The consumer must not modify the presence type, otherwise an IllegalArgumentException will be thrown.

        Parameters:
        presenceBuilderConsumer - a consumer which will be passed the presence build.
        Returns:
        a reference to this builder.
        Since:
        4.4.0
      • withPassword

        public MucEnterConfiguration.Builder withPassword​(java.lang.String password)
        Use the given password to join the MUC room.
        Parameters:
        password - the password used to join.
        Returns:
        a reference to this builder.
      • timeoutAfter

        public MucEnterConfiguration.Builder timeoutAfter​(long timeout)
        Set the timeout used when joining the MUC room.
        Parameters:
        timeout - the timeout to use when joining.
        Returns:
        a reference to this builder.
      • requestMaxCharsHistory

        public MucEnterConfiguration.Builder requestMaxCharsHistory​(int maxChars)
        Sets the total number of characters to receive in the history.
        Parameters:
        maxChars - the total number of characters to receive in the history.
        Returns:
        a reference to this builder.
      • requestMaxStanzasHistory

        public MucEnterConfiguration.Builder requestMaxStanzasHistory​(int maxStanzas)
        Sets the total number of messages to receive in the history.
        Parameters:
        maxStanzas - the total number of messages to receive in the history.
        Returns:
        a reference to this builder.
      • requestHistorySince

        public MucEnterConfiguration.Builder requestHistorySince​(int seconds)
        Sets the number of seconds to use to filter the messages received during that time. In other words, only the messages received in the last "X" seconds will be included in the history.
        Parameters:
        seconds - the number of seconds to use to filter the messages received during that time.
        Returns:
        a reference to this builder.
      • requestHistorySince

        public MucEnterConfiguration.Builder requestHistorySince​(java.util.Date since)
        Sets the since date to use to filter the messages received during that time. In other words, only the messages received since the datetime specified will be included in the history.
        Parameters:
        since - the since date to use to filter the messages received during that time.
        Returns:
        a reference to this builder.