public static final class MucEnterConfiguration.Builder extends Object
Modifier and Type | Method and Description |
---|---|
MucEnterConfiguration |
build()
Build a new
MucEnterConfiguration with the current builder. |
MucEnterConfiguration.Builder |
requestHistorySince(Date since)
Sets the since date to use to filter the messages received during that time.
|
MucEnterConfiguration.Builder |
requestHistorySince(int seconds)
Sets the number of seconds to use to filter the messages received during that time.
|
MucEnterConfiguration.Builder |
requestMaxCharsHistory(int maxChars)
Sets the total number of characters to receive in the history.
|
MucEnterConfiguration.Builder |
requestMaxStanzasHistory(int maxStanzas)
Sets the total number of messages to receive in the history.
|
MucEnterConfiguration.Builder |
requestNoHistory()
Request that that MUC is going to sent us no history when joining.
|
MucEnterConfiguration.Builder |
timeoutAfter(long timeout)
Set the timeout used when joining the MUC room.
|
MucEnterConfiguration.Builder |
withPassword(String password)
Use the given password to join the MUC room.
|
MucEnterConfiguration.Builder |
withPresence(Presence presence)
Set the presence used to join the MUC room.
|
public MucEnterConfiguration.Builder withPresence(Presence presence)
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.
presence
- public MucEnterConfiguration.Builder withPassword(String password)
password
- the password used to join.public MucEnterConfiguration.Builder timeoutAfter(long timeout)
timeout
- the timeout to use when joining.public MucEnterConfiguration.Builder requestNoHistory()
public MucEnterConfiguration.Builder requestMaxCharsHistory(int maxChars)
maxChars
- the total number of characters to receive in the history.public MucEnterConfiguration.Builder requestMaxStanzasHistory(int maxStanzas)
maxStanzas
- the total number of messages to receive in the history.public MucEnterConfiguration.Builder requestHistorySince(int seconds)
seconds
- the number of seconds to use to filter the messages received during
that time.public MucEnterConfiguration.Builder requestHistorySince(Date since)
since
- the since date to use to filter the messages received during that time.public MucEnterConfiguration build()
MucEnterConfiguration
with the current builder.MucEnterConfiguration
.