Package org.jivesoftware.smackx.muc
Class DiscussionHistory
java.lang.Object
org.jivesoftware.smackx.muc.DiscussionHistory
Deprecated.
The DiscussionHistory class controls the number of characters or messages to receive
when entering a room. The room will decide the amount of history to return if you don't
specify a DiscussionHistory while joining a room.
You can use some or all of these variable to control the amount of history to receive:
- maxchars -> total number of characters to receive in the history.
- maxstanzas -> total number of messages to receive in the history.
- seconds -> only the messages received in the last "X" seconds will be included in the history.
- since -> only the messages received since the datetime specified will be included in the history.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
Deprecated.Returns the total number of characters to receive in the history.int
Deprecated.Returns the total number of messages to receive in the history.int
Deprecated.Returns the number of seconds to use to filter the messages received during that time.getSince()
Deprecated.Returns the since date to use to filter the messages received during that time.void
setMaxChars
(int maxChars) Deprecated.Sets the total number of characters to receive in the history.void
setMaxStanzas
(int maxStanzas) Deprecated.Sets the total number of messages to receive in the history.void
setSeconds
(int seconds) Deprecated.Sets the number of seconds to use to filter the messages received during that time.void
Deprecated.Sets the since date to use to filter the messages received during that time.
-
Constructor Details
-
DiscussionHistory
public DiscussionHistory()Deprecated.
-
-
Method Details
-
getMaxChars
Deprecated.Returns the total number of characters to receive in the history.- Returns:
- total number of characters to receive in the history.
-
getMaxStanzas
Deprecated.Returns the total number of messages to receive in the history.- Returns:
- the total number of messages to receive in the history.
-
getSeconds
Deprecated.Returns 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.- Returns:
- the number of seconds to use to filter the messages received during that time.
-
getSince
Deprecated.Returns 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.- Returns:
- the since date to use to filter the messages received during that time.
-
setMaxChars
Deprecated.Sets the total number of characters to receive in the history.- Parameters:
maxChars
- the total number of characters to receive in the history.
-
setMaxStanzas
Deprecated.Sets the total number of messages to receive in the history.- Parameters:
maxStanzas
- the total number of messages to receive in the history.
-
setSeconds
Deprecated.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.
-
setSince
Deprecated.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.
-
MucEnterConfiguration
instead.