public class MongoMsgRepository extends tigase.server.amp.db.MsgRepository<org.bson.types.ObjectId,MongoDataSource> implements MongoRepositoryVersionAware
tigase.server.amp.db.MsgRepository.MSG_TYPES, tigase.server.amp.db.MsgRepository.MsgDBItem<T>, tigase.server.amp.db.MsgRepository.MsgRepositoryMDBean, tigase.server.amp.db.MsgRepository.OfflineMessagesProcessor| Constructor and Description |
|---|
MongoMsgRepository() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
deleteMessage(org.bson.types.ObjectId dbId) |
int |
deleteMessagesToJID(List<String> db_ids,
tigase.xmpp.XMPPResourceConnection session) |
tigase.xml.Element |
getMessageExpired(long time,
boolean delete) |
Map<Enum,Long> |
getMessagesCount(tigase.xmpp.jid.JID to) |
List<tigase.xml.Element> |
getMessagesList(tigase.xmpp.jid.JID to) |
void |
initRepository(String resource_uri,
Map<String,String> params)
Deprecated.
|
protected void |
loadExpiredQueue(Date expired) |
protected void |
loadExpiredQueue(int max) |
Queue<tigase.xml.Element> |
loadMessagesToJID(List<String> db_ids,
tigase.xmpp.XMPPResourceConnection session,
boolean delete,
tigase.server.amp.db.MsgRepository.OfflineMessagesProcessor proc) |
Queue<tigase.xml.Element> |
loadMessagesToJID(tigase.xmpp.XMPPResourceConnection session,
boolean delete) |
Queue<tigase.xml.Element> |
loadMessagesToJID(tigase.xmpp.XMPPResourceConnection session,
boolean delete,
tigase.server.amp.db.MsgRepository.OfflineMessagesProcessor proc) |
void |
setDataSource(MongoDataSource dataSource) |
boolean |
storeMessage(tigase.xmpp.jid.JID from,
tigase.xmpp.jid.JID to,
Date expired,
tigase.xml.Element msg,
tigase.db.NonAuthUserRepository userRepo) |
tigase.db.util.SchemaLoader.Result |
updateSchema(Optional<tigase.util.Version> oldVersion,
tigase.util.Version newVersion) |
getInstance, getMsgsStoreLimit, setConditionclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetVersionprotected void deleteMessage(org.bson.types.ObjectId dbId)
deleteMessage in class tigase.server.amp.db.MsgRepository<org.bson.types.ObjectId,MongoDataSource>public int deleteMessagesToJID(List<String> db_ids, tigase.xmpp.XMPPResourceConnection session) throws tigase.db.UserNotFoundException
deleteMessagesToJID in interface tigase.db.MsgRepositoryIfc<MongoDataSource>deleteMessagesToJID in class tigase.server.amp.db.MsgRepository<org.bson.types.ObjectId,MongoDataSource>tigase.db.UserNotFoundExceptionpublic tigase.xml.Element getMessageExpired(long time,
boolean delete)
getMessageExpired in interface tigase.db.OfflineMsgRepositoryIfcgetMessageExpired in class tigase.server.amp.db.MsgRepository<org.bson.types.ObjectId,MongoDataSource>public Map<Enum,Long> getMessagesCount(tigase.xmpp.jid.JID to) throws tigase.db.UserNotFoundException
getMessagesCount in interface tigase.db.MsgRepositoryIfc<MongoDataSource>tigase.db.UserNotFoundExceptionpublic List<tigase.xml.Element> getMessagesList(tigase.xmpp.jid.JID to) throws tigase.db.UserNotFoundException
getMessagesList in interface tigase.db.MsgRepositoryIfc<MongoDataSource>tigase.db.UserNotFoundException@Deprecated public void initRepository(String resource_uri, Map<String,String> params) throws tigase.db.DBInitException
initRepository in interface tigase.db.RepositoryinitRepository in class tigase.server.amp.db.MsgRepository<org.bson.types.ObjectId,MongoDataSource>tigase.db.DBInitExceptionprotected void loadExpiredQueue(int max)
loadExpiredQueue in class tigase.server.amp.db.MsgRepository<org.bson.types.ObjectId,MongoDataSource>protected void loadExpiredQueue(Date expired)
loadExpiredQueue in class tigase.server.amp.db.MsgRepository<org.bson.types.ObjectId,MongoDataSource>public Queue<tigase.xml.Element> loadMessagesToJID(tigase.xmpp.XMPPResourceConnection session, boolean delete) throws tigase.db.UserNotFoundException
loadMessagesToJID in interface tigase.db.OfflineMsgRepositoryIfctigase.db.UserNotFoundExceptionpublic Queue<tigase.xml.Element> loadMessagesToJID(tigase.xmpp.XMPPResourceConnection session, boolean delete, tigase.server.amp.db.MsgRepository.OfflineMessagesProcessor proc) throws tigase.db.UserNotFoundException
tigase.db.UserNotFoundExceptionpublic Queue<tigase.xml.Element> loadMessagesToJID(List<String> db_ids, tigase.xmpp.XMPPResourceConnection session, boolean delete, tigase.server.amp.db.MsgRepository.OfflineMessagesProcessor proc) throws tigase.db.UserNotFoundException
loadMessagesToJID in interface tigase.db.MsgRepositoryIfc<MongoDataSource>loadMessagesToJID in class tigase.server.amp.db.MsgRepository<org.bson.types.ObjectId,MongoDataSource>tigase.db.UserNotFoundExceptionpublic void setDataSource(MongoDataSource dataSource)
setDataSource in interface tigase.db.DataSourceAware<MongoDataSource>public boolean storeMessage(tigase.xmpp.jid.JID from,
tigase.xmpp.jid.JID to,
Date expired,
tigase.xml.Element msg,
tigase.db.NonAuthUserRepository userRepo)
throws tigase.db.UserNotFoundException
storeMessage in interface tigase.db.OfflineMsgRepositoryIfctigase.db.UserNotFoundExceptionpublic tigase.db.util.SchemaLoader.Result updateSchema(Optional<tigase.util.Version> oldVersion, tigase.util.Version newVersion) throws tigase.db.TigaseDBException
updateSchema in interface tigase.db.util.RepositoryVersionAwaretigase.db.TigaseDBExceptionCopyright © 2014–2019 "Tigase, Inc.". All rights reserved.