public final class History extends Object
| Modifier and Type | Method and Description |
|---|---|
static History |
forMaxChars(int maxChars)
Limit the total number of characters in the history to "X" (where the character count is the characters of the complete XML stanzas, not only their XML character data).
|
static History |
forMaxMessages(int maxMessages)
Limit the total number of messages in the history to "X".
|
static History |
forSeconds(int seconds)
Send only the messages received in the last "X" seconds.
|
static History |
none()
Send no history.
|
static History |
since(Date date)
Send only the messages received since the date.
|
public static History forMaxChars(int maxChars)
maxChars - The maximal character count.public static History forMaxMessages(int maxMessages)
maxMessages - The maximal number of messages.public static History forSeconds(int seconds)
seconds - The seconds.public static History since(Date date)
date - The date.public static History none()
Copyright © 2014–2015 XMPP.rocks. All rights reserved.