Package tigase.server.amp.db
Class JDBCMsgBroadcastRepository
java.lang.Object
tigase.server.amp.db.MsgBroadcastRepository<Long,DataRepository>
tigase.server.amp.db.JDBCMsgBroadcastRepository
- All Implemented Interfaces:
DataSourceAware<DataRepository>
,RepositoryVersionAware
public class JDBCMsgBroadcastRepository
extends MsgBroadcastRepository<Long,DataRepository>
implements RepositoryVersionAware
Created by andrzej on 15.03.2016.
-
Nested Class Summary
Nested classes/interfaces inherited from class tigase.server.amp.db.MsgBroadcastRepository
MsgBroadcastRepository.BroadcastMsg<T>, MsgBroadcastRepository.MsgBroadcastRepositoryBean
Nested classes/interfaces inherited from interface tigase.db.util.RepositoryVersionAware
RepositoryVersionAware.SchemaVersion
-
Field Summary
Fields inherited from class tigase.server.amp.db.MsgBroadcastRepository
broadcastMessages, broadcastMessagesLastCleanup, parser
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
ensureBroadcastMessageRecipient
(String id, BareJID recipient) protected void
insertBroadcastMessage
(String id, Element msg, Date expire, BareJID recipient) void
void
setDataSource
(DataRepository data_repo) Method called to provide class with instance of a data source.Methods inherited from class tigase.server.amp.db.MsgBroadcastRepository
dumpBroadcastMessageKeys, getBroadcastMessages, getBroadcastMsg, updateBroadcastMessage
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface tigase.db.util.RepositoryVersionAware
getVersion, updateSchema
-
Constructor Details
-
JDBCMsgBroadcastRepository
public JDBCMsgBroadcastRepository()
-
-
Method Details
-
setDataSource
Description copied from interface:DataSourceAware
Method called to provide class with instance of a data source.- Specified by:
setDataSource
in interfaceDataSourceAware<DataRepository>
-
loadMessagesToBroadcast
public void loadMessagesToBroadcast()- Specified by:
loadMessagesToBroadcast
in classMsgBroadcastRepository<Long,
DataRepository>
-
insertBroadcastMessage
- Specified by:
insertBroadcastMessage
in classMsgBroadcastRepository<Long,
DataRepository>
-
ensureBroadcastMessageRecipient
- Specified by:
ensureBroadcastMessageRecipient
in classMsgBroadcastRepository<Long,
DataRepository>
-