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 java.lang.Object implements IPushRepository<DS>
Created by andrzej on 05.01.2017.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static class
AbstractPushRepository.StatisticsImpl
-
Nested classes/interfaces inherited from interface tigase.push.api.IPushRepository
IPushRepository.ElseHandler, IPushRepository.Statistics
-
-
Constructor Summary
Constructors Constructor Description AbstractPushRepository()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.String
calculateNode(tigase.xmpp.jid.BareJID serviceJid, tigase.xmpp.jid.BareJID userJid)
protected java.lang.String
calculateNode(tigase.xmpp.jid.BareJID serviceJid, tigase.xmpp.jid.BareJID userJid, java.lang.String deviceId)
java.util.stream.Stream<IPushSettings>
getNodeSettings(tigase.xmpp.jid.BareJID userJid, java.lang.String provider, java.lang.String deviceId)
protected java.lang.String
toHex(byte[] data, java.lang.String prefix)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface tigase.push.api.IPushRepository
getNodeSettings, getNodeSettings, getNodeSettings, getStatistics, registerDevice, unregisterDevice
-
-
-
-
Method Detail
-
getNodeSettings
public java.util.stream.Stream<IPushSettings> getNodeSettings(tigase.xmpp.jid.BareJID userJid, java.lang.String provider, java.lang.String deviceId) throws tigase.component.exceptions.RepositoryException
- Specified by:
getNodeSettings
in interfaceIPushRepository<DS extends tigase.db.DataSource>
- Throws:
tigase.component.exceptions.RepositoryException
-
calculateNode
protected java.lang.String calculateNode(tigase.xmpp.jid.BareJID serviceJid, tigase.xmpp.jid.BareJID userJid) throws tigase.component.exceptions.RepositoryException
- Throws:
tigase.component.exceptions.RepositoryException
-
calculateNode
protected java.lang.String calculateNode(tigase.xmpp.jid.BareJID serviceJid, tigase.xmpp.jid.BareJID userJid, java.lang.String deviceId) throws tigase.component.exceptions.RepositoryException
- Throws:
tigase.component.exceptions.RepositoryException
-
toHex
protected java.lang.String toHex(byte[] data, java.lang.String prefix)
-
-