Package org.jivesoftware.smackx.muc
Class MucEnterConfiguration.Builder
java.lang.Object
org.jivesoftware.smackx.muc.MucEnterConfiguration.Builder
- Enclosing class:
- MucEnterConfiguration
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Build a newMucEnterConfiguration
with the current builder.requestHistorySince
(int seconds) Sets the number of seconds to use to filter the messages received during that time.requestHistorySince
(Date since) Sets the since date to use to filter the messages received during that time.requestMaxCharsHistory
(int maxChars) Sets the total number of characters to receive in the history.requestMaxStanzasHistory
(int maxStanzas) Sets the total number of messages to receive in the history.Request that that MUC is going to sent us no history when joining.timeoutAfter
(long timeout) Set the timeout used when joining the MUC room.withPassword
(String password) Use the given password to join the MUC room.withPresence
(Consumer<? super PresenceBuilder> presenceBuilderConsumer) Set the presence used to join the MUC room.
-
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 anIllegalArgumentException
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 newMucEnterConfiguration
with the current builder.- Returns:
- a new
MucEnterConfiguration
.
-