public interface MessageArchiveRepository<Q extends Query,DS extends tigase.db.DataSource>
extends tigase.db.DataSourceAware<DS>, tigase.xmpp.mam.MAMRepository<Q,tigase.xmpp.mam.MAMRepository.Item>
Modifier and Type | Interface and Description |
---|---|
static interface |
MessageArchiveRepository.CollectionHandler<Q extends tigase.xmpp.mam.Query> |
static class |
MessageArchiveRepository.Direction |
static interface |
MessageArchiveRepository.Item |
Modifier and Type | Method and Description |
---|---|
void |
archiveMessage(tigase.xmpp.jid.BareJID owner,
tigase.xmpp.jid.JID buddy,
MessageArchiveRepository.Direction direction,
Date timestamp,
tigase.xml.Element msg,
Set<String> tags) |
void |
deleteExpiredMessages(tigase.xmpp.jid.BareJID owner,
LocalDateTime before) |
default void |
destroy()
Destroys instance of this repository and releases resources allocated if possible
|
List<String> |
getTags(tigase.xmpp.jid.BareJID owner,
String startsWith,
Q criteria) |
void |
queryCollections(Q query,
MessageArchiveRepository.CollectionHandler<Q> collectionHandler) |
void |
removeItems(tigase.xmpp.jid.BareJID owner,
String withJid,
Date start,
Date end) |
void archiveMessage(tigase.xmpp.jid.BareJID owner, tigase.xmpp.jid.JID buddy, MessageArchiveRepository.Direction direction, Date timestamp, tigase.xml.Element msg, Set<String> tags)
void deleteExpiredMessages(tigase.xmpp.jid.BareJID owner, LocalDateTime before) throws tigase.db.TigaseDBException
tigase.db.TigaseDBException
default void destroy()
void removeItems(tigase.xmpp.jid.BareJID owner, String withJid, Date start, Date end) throws tigase.db.TigaseDBException
tigase.db.TigaseDBException
List<String> getTags(tigase.xmpp.jid.BareJID owner, String startsWith, Q criteria) throws tigase.db.TigaseDBException
tigase.db.TigaseDBException
void queryCollections(Q query, MessageArchiveRepository.CollectionHandler<Q> collectionHandler) throws tigase.db.TigaseDBException
tigase.db.TigaseDBException
Copyright © 2012–2019 "Tigase, Inc.". All rights reserved.