Package tigase.server.amp.db
Class MsgBroadcastRepository<T,S extends DataSource>
java.lang.Object
tigase.server.amp.db.MsgBroadcastRepository<T,S>
- All Implemented Interfaces:
DataSourceAware<S>
- Direct Known Subclasses:
JDBCMsgBroadcastRepository
public abstract class MsgBroadcastRepository<T,S extends DataSource>
extends Object
implements DataSourceAware<S>
Created by andrzej on 15.03.2016.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclassstatic class -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Map<String, MsgBroadcastRepository.BroadcastMsg> protected longprotected SimpleParser -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract voidensureBroadcastMessageRecipient(String id, BareJID recipient) protected abstract voidinsertBroadcastMessage(String id, Element msg, Date expire, BareJID recipient) abstract voidbooleanupdateBroadcastMessage(String id, Element msg, Date expire, BareJID recipient) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface tigase.db.DataSourceAware
setDataSource
-
Field Details
-
broadcastMessages
-
broadcastMessagesLastCleanup
protected long broadcastMessagesLastCleanup -
parser
-
-
Constructor Details
-
MsgBroadcastRepository
public MsgBroadcastRepository()
-
-
Method Details
-
loadMessagesToBroadcast
public abstract void loadMessagesToBroadcast() -
getBroadcastMsg
-
dumpBroadcastMessageKeys
-
getBroadcastMessages
-
updateBroadcastMessage
-
ensureBroadcastMessageRecipient
-
insertBroadcastMessage
-