@Bean(name="msgBroadcastRepository", parent=AmpComponent.class, active=true) public static class MsgBroadcastRepository.MsgBroadcastRepositoryBean extends MDRepositoryBeanWithStatistics<MsgBroadcastRepository> implements MsgBroadcastRepositoryIfc
| Modifier and Type | Class and Description |
|---|---|
static class |
MsgBroadcastRepository.MsgBroadcastRepositoryBean.MsgBroadcastRepositoryConfigBean |
MDRepositoryBean.MDRepositoryConfigBean<A extends DataSourceAware>, MDRepositoryBean.SelectorTypealiases, dataSourceSelection| Constructor and Description |
|---|
MsgBroadcastRepositoryBean() |
| Modifier and Type | Method and Description |
|---|---|
String |
dumpBroadcastMessageKeys() |
protected Class<? extends MsgBroadcastRepository> |
findClassForDataSource(DataSource dataSource)
Method returns class implementing repository which supports data source instance provided in parameter.
|
Collection<MsgBroadcastRepository.BroadcastMsg> |
getBroadcastMessages() |
MsgBroadcastRepository.BroadcastMsg |
getBroadcastMsg(String id) |
Class<?> |
getDefaultBeanClass()
Returns default class for all bean which are defined using configuration as subbeans of bean implementing this
interface.
|
void |
loadMessagesToBroadcast() |
void |
setDataSource(DataSource dataSource)
Method called to provide class with instance of a data source.
|
boolean |
updateBroadcastMessage(String id,
Element msg,
Date expire,
BareJID recipient) |
everyHour, everyMinute, everySecond, getRepositories, getRepository, getStatistics, setStatisticsEnabled, updateDataSourceAware, wrapInProxybeforeUnregister, getName, initialize, initializeRepository, onDataSourceChange, register, registerIfNotExists, repositoriesStream, setDataSourceBean, unregisterclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitbelongsTopublic void setDataSource(DataSource dataSource)
DataSourceAwaresetDataSource in interface DataSourceAwarepublic void loadMessagesToBroadcast()
loadMessagesToBroadcast in interface MsgBroadcastRepositoryIfcpublic MsgBroadcastRepository.BroadcastMsg getBroadcastMsg(String id)
getBroadcastMsg in interface MsgBroadcastRepositoryIfcpublic String dumpBroadcastMessageKeys()
dumpBroadcastMessageKeys in interface MsgBroadcastRepositoryIfcpublic Collection<MsgBroadcastRepository.BroadcastMsg> getBroadcastMessages()
getBroadcastMessages in interface MsgBroadcastRepositoryIfcpublic boolean updateBroadcastMessage(String id, Element msg, Date expire, BareJID recipient)
updateBroadcastMessage in interface MsgBroadcastRepositoryIfcpublic Class<?> getDefaultBeanClass()
RegistrarBeanWithDefaultBeanClassgetDefaultBeanClass in interface RegistrarBeanWithDefaultBeanClassprotected Class<? extends MsgBroadcastRepository> findClassForDataSource(DataSource dataSource) throws DBInitException
MDRepositoryBeanfindClassForDataSource in class MDRepositoryBean<MsgBroadcastRepository>DBInitExceptionCopyright © 2004–2020 "Tigase, Inc.". All rights reserved.