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 ClassesModifier and TypeInterfaceDescriptionstatic interfaceDeprecated.static interfaceMessageArchiveRepository.CollectionHandler<Q extends tigase.xmpp.mam.Query,C extends MessageArchiveRepository.Collection> Deprecated.static enumstatic interfaceNested classes/interfaces inherited from interface tigase.xmpp.mam.MAMRepository
tigase.xmpp.mam.MAMRepository.ItemHandler<Q extends tigase.xmpp.mam.Query,I extends tigase.xmpp.mam.MAMRepository.Item> -
Method Summary
Modifier and TypeMethodDescriptionvoidarchiveMessage(tigase.xmpp.jid.BareJID owner, tigase.xmpp.jid.JID buddy, Date timestamp, tigase.xml.Element msg, String stableId, Set<String> tags) voiddeleteExpiredMessages(tigase.xmpp.jid.BareJID owner, LocalDateTime before) default voiddestroy()Destroys instance of this repository and releases resources allocated if possiblegetStableId(tigase.xmpp.jid.BareJID owner, tigase.xmpp.jid.BareJID buddy, String stanzaId) voidqueryCollections(Q query, MessageArchiveRepository.CollectionHandler<Q, MessageArchiveRepository.Collection> collectionHandler) Deprecated.voidremoveItems(tigase.xmpp.jid.BareJID owner, String withJid, Date start, Date end) Methods inherited from interface tigase.db.DataSourceAware
setDataSourceMethods inherited from interface tigase.xmpp.mam.MAMRepository
newQuery, newQuery, queryItems
-
Method Details
-
archiveMessage
-
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 -
getStableId
String getStableId(tigase.xmpp.jid.BareJID owner, tigase.xmpp.jid.BareJID buddy, String stanzaId) throws tigase.db.TigaseDBException - Throws:
tigase.db.TigaseDBException
-
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
@Deprecated void queryCollections(Q query, MessageArchiveRepository.CollectionHandler<Q, MessageArchiveRepository.Collection> collectionHandler) throws tigase.db.TigaseDBExceptionDeprecated.- Throws:
tigase.db.TigaseDBException
-