Class MucEnterConfiguration.Builder

java.lang.Object
org.jivesoftware.smackx.muc.MucEnterConfiguration.Builder
Enclosing class:
MucEnterConfiguration

public static final class MucEnterConfiguration.Builder extends Object
  • Method Details

    • 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

      Use the given password to join the MUC room.
      Parameters:
      password - the password used to join.
      Returns:
      a reference to this builder.
    • timeoutAfter

      Set the timeout used when joining the MUC room.
      Parameters:
      timeout - the timeout to use when joining.
      Returns:
      a reference to this builder.
    • requestNoHistory

      Request that that MUC is going to sent us no history when joining.
      Returns:
      a reference to this builder.
    • requestMaxCharsHistory

      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

      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

      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

      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.
    • build

      Build a new MucEnterConfiguration with the current builder.
      Returns:
      a new MucEnterConfiguration.