Smack

org.jivesoftware.smackx.muc
Class DiscussionHistory

java.lang.Object
  extended by org.jivesoftware.smackx.muc.DiscussionHistory

public class DiscussionHistory
extends java.lang.Object

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:

Note: Setting maxchars to 0 indicates that the user requests to receive no history.

Author:
Gaston Dombiak

Constructor Summary
DiscussionHistory()
           
 
Method Summary
 int getMaxChars()
          Returns the total number of characters to receive in the history.
 int getMaxStanzas()
          Returns the total number of messages to receive in the history.
 int getSeconds()
          Returns the number of seconds to use to filter the messages received during that time.
 java.util.Date getSince()
          Returns the since date to use to filter the messages received during that time.
 void setMaxChars(int maxChars)
          Sets the total number of characters to receive in the history.
 void setMaxStanzas(int maxStanzas)
          Sets the total number of messages to receive in the history.
 void setSeconds(int seconds)
          Sets the number of seconds to use to filter the messages received during that time.
 void setSince(java.util.Date since)
          Sets the since date to use to filter the messages received during that time.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DiscussionHistory

public DiscussionHistory()
Method Detail

getMaxChars

public int getMaxChars()
Returns the total number of characters to receive in the history.

Returns:
total number of characters to receive in the history.

getMaxStanzas

public int getMaxStanzas()
Returns the total number of messages to receive in the history.

Returns:
the total number of messages to receive in the history.

getSeconds

public int getSeconds()
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

public java.util.Date getSince()
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

public void setMaxChars(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.

setMaxStanzas

public void setMaxStanzas(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.

setSeconds

public void setSeconds(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.

setSince

public void setSince(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.

Smack

Copyright © 2003-2007 Jive Software.