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
Modifier and TypeClassDescriptionclass
static class
-
Field Summary
Modifier and TypeFieldDescriptionprotected Map<String,
MsgBroadcastRepository.BroadcastMsg> protected long
protected SimpleParser
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected abstract void
ensureBroadcastMessageRecipient
(String id, BareJID recipient) protected abstract void
insertBroadcastMessage
(String id, Element msg, Date expire, BareJID recipient) abstract void
boolean
updateBroadcastMessage
(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, wait
Methods 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
-