public class BoshSessionCache extends Object
Modifier and Type | Field and Description |
---|---|
static String |
DEF_ID |
protected Map<String,Long> |
jid_msg_start
Cached time of the first message to/from some jid to speedup message caching processing
|
static String |
MESSAGE_ID |
static String |
RESOURCE_BIND_ID |
static String |
ROSTER_ID |
Constructor and Description |
---|
BoshSessionCache()
Creates a new
BoshSessionCache instance. |
Modifier and Type | Method and Description |
---|---|
void |
add(String id,
List<Element> data) |
void |
addFromMessage(Element message) |
void |
addPresence(Element presence) |
void |
addRoster(Element roster) |
void |
addToMessage(Element message) |
List<Element> |
get(String id) |
List<Element> |
getAll() |
List<Element> |
getAllPresences() |
List<Element> |
getPresence(String... from) |
List<Element> |
remove(String id) |
void |
set(String id,
List<Element> data) |
public static final String DEF_ID
public static final String MESSAGE_ID
public static final String RESOURCE_BIND_ID
public static final String ROSTER_ID
public BoshSessionCache()
BoshSessionCache
instance.Copyright © 2004–2020 "Tigase, Inc.". All rights reserved.