public class HistoryRequest extends Object
A user may combine any of these four methods. The idea is that the user will receive the smallest amount of traffic so the amount of history to collect will stop as soon as any of the requested method has reached its limit.
Constructor and Description |
---|
HistoryRequest(org.dom4j.Element userFragment) |
Modifier and Type | Method and Description |
---|---|
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.
|
Date |
getSince()
Returns the since date to use to filter the messages received during that time.
|
void |
sendHistory(LocalMUCRole joinRole,
MUCRoomHistory roomHistory)
Sends the smallest amount of traffic that meets any combination of the requested criteria.
|
public int getMaxChars()
public int getMaxStanzas()
public int getSeconds()
public Date getSince()
public void sendHistory(LocalMUCRole joinRole, MUCRoomHistory roomHistory)
joinRole
- the user that will receive the history.roomHistory
- the history of the room.Copyright © 2003–2019 Ignite Realtime. All rights reserved.