Package tigase.archive.db
Interface MessageArchiveRepository<Q extends Query,DS extends tigase.db.DataSource>
-
- All Superinterfaces:
tigase.db.DataSourceAware<DS>,tigase.xmpp.mam.MAMRepository<Q,tigase.xmpp.mam.MAMRepository.Item>
- All Known Implementing Classes:
AbstractMessageArchiveRepository,JDBCMessageArchiveRepository,MessageArchiveRepositoryPool
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>- Author:
- andrzej
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceMessageArchiveRepository.CollectionHandler<Q extends tigase.xmpp.mam.Query>static classMessageArchiveRepository.Directionstatic interfaceMessageArchiveRepository.Item
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description voidarchiveMessage(tigase.xmpp.jid.BareJID owner, tigase.xmpp.jid.JID buddy, MessageArchiveRepository.Direction direction, Date timestamp, tigase.xml.Element msg, Set<String> tags)voiddeleteExpiredMessages(tigase.xmpp.jid.BareJID owner, LocalDateTime before)default voiddestroy()Destroys instance of this repository and releases resources allocated if possibleList<String>getTags(tigase.xmpp.jid.BareJID owner, String startsWith, Q criteria)voidqueryCollections(Q query, MessageArchiveRepository.CollectionHandler<Q> collectionHandler)voidremoveItems(tigase.xmpp.jid.BareJID owner, String withJid, Date start, Date end)
-
-
-
Method Detail
-
archiveMessage
void archiveMessage(tigase.xmpp.jid.BareJID owner, tigase.xmpp.jid.JID buddy, MessageArchiveRepository.Direction direction, Date timestamp, tigase.xml.Element msg, Set<String> tags)
-
deleteExpiredMessages
void deleteExpiredMessages(tigase.xmpp.jid.BareJID owner, LocalDateTime before) throws tigase.db.TigaseDBException- Throws:
tigase.db.TigaseDBException
-
destroy
default void destroy()
Destroys instance of this repository and releases resources allocated if possible
-
removeItems
void removeItems(tigase.xmpp.jid.BareJID owner, String withJid, Date start, Date end) throws tigase.db.TigaseDBException- Throws:
tigase.db.TigaseDBException
-
getTags
List<String> getTags(tigase.xmpp.jid.BareJID owner, String startsWith, Q criteria) throws tigase.db.TigaseDBException
- Throws:
tigase.db.TigaseDBException
-
queryCollections
void queryCollections(Q query, MessageArchiveRepository.CollectionHandler<Q> collectionHandler) throws tigase.db.TigaseDBException
- Throws:
tigase.db.TigaseDBException
-
-