Package tigase.push.repositories
Class AbstractPushRepository<DS extends tigase.db.DataSource>
java.lang.Object
tigase.push.repositories.AbstractPushRepository<DS>
- All Implemented Interfaces:
tigase.db.DataSourceAware<DS>,IPushRepository<DS>
- Direct Known Subclasses:
InMemoryPushRepository,JDBCPushRepository
public abstract class AbstractPushRepository<DS extends tigase.db.DataSource>
extends Object
implements IPushRepository<DS>
Created by andrzej on 05.01.2017.
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface tigase.push.api.IPushRepository
IPushRepository.ElseHandler, IPushRepository.Statistics -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected StringcalculateNode(tigase.xmpp.jid.BareJID serviceJid, tigase.xmpp.jid.BareJID userJid) protected StringcalculateNode(tigase.xmpp.jid.BareJID serviceJid, tigase.xmpp.jid.BareJID userJid, String deviceId) getNodeSettings(tigase.xmpp.jid.BareJID userJid, String provider, String deviceId) protected StringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface tigase.db.DataSourceAware
setDataSourceMethods inherited from interface tigase.push.api.IPushRepository
getNodeSettings, getNodeSettings, getNodeSettings, getStatistics, registerDevice, unregisterDevice
-
Constructor Details
-
AbstractPushRepository
public AbstractPushRepository()
-
-
Method Details
-
getNodeSettings
public Stream<IPushSettings> getNodeSettings(tigase.xmpp.jid.BareJID userJid, String provider, String deviceId) throws tigase.component.exceptions.RepositoryException - Specified by:
getNodeSettingsin interfaceIPushRepository<DS extends tigase.db.DataSource>- Throws:
tigase.component.exceptions.RepositoryException
-
calculateNode
protected String calculateNode(tigase.xmpp.jid.BareJID serviceJid, tigase.xmpp.jid.BareJID userJid) throws tigase.component.exceptions.RepositoryException - Throws:
tigase.component.exceptions.RepositoryException
-
calculateNode
protected String calculateNode(tigase.xmpp.jid.BareJID serviceJid, tigase.xmpp.jid.BareJID userJid, String deviceId) throws tigase.component.exceptions.RepositoryException - Throws:
tigase.component.exceptions.RepositoryException
-
toHex
-