Package tigase.push.repositories
Class InMemoryPushRepository
- java.lang.Object
-
- tigase.push.repositories.AbstractPushRepository
-
- tigase.push.repositories.InMemoryPushRepository
-
- All Implemented Interfaces:
tigase.db.DataSourceAware
,IPushRepository
public class InMemoryPushRepository extends AbstractPushRepository
Created by andrzej on 02.01.2017.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
InMemoryPushRepository.Key
-
Nested classes/interfaces inherited from interface tigase.push.api.IPushRepository
IPushRepository.ElseHandler
-
-
Constructor Summary
Constructors Constructor Description InMemoryPushRepository()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.stream.Stream<IPushSettings>
getNodeSettings(java.lang.String provider, java.lang.String deviceId)
IPushSettings
getNodeSettings(tigase.xmpp.jid.BareJID serviceJid, java.lang.String node)
static void
main(java.lang.String[] args)
IPushSettings
registerDevice(tigase.xmpp.jid.BareJID serviceJid, tigase.xmpp.jid.BareJID userJid, java.lang.String provider, java.lang.String deviceId)
void
setDataSource(tigase.db.DataSource dataSource)
IPushSettings
unregisterDevice(tigase.xmpp.jid.BareJID serviceJid, tigase.xmpp.jid.BareJID userJid, java.lang.String provider, java.lang.String deviceId)
IPushSettings
unregisterDeviceOld(tigase.xmpp.jid.BareJID serviceJid, tigase.xmpp.jid.BareJID userJid, java.lang.String provider, java.lang.String deviceId)
-
Methods inherited from class tigase.push.repositories.AbstractPushRepository
calculateNode, calculateNode, getNodeSettings, toHex
-
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
-
-
-
-
Method Detail
-
registerDevice
public IPushSettings registerDevice(tigase.xmpp.jid.BareJID serviceJid, tigase.xmpp.jid.BareJID userJid, java.lang.String provider, java.lang.String deviceId) throws tigase.component.exceptions.RepositoryException
- Throws:
tigase.component.exceptions.RepositoryException
-
unregisterDevice
public IPushSettings unregisterDevice(tigase.xmpp.jid.BareJID serviceJid, tigase.xmpp.jid.BareJID userJid, java.lang.String provider, java.lang.String deviceId) throws tigase.component.exceptions.RepositoryException, tigase.component.exceptions.ComponentException
- Throws:
tigase.component.exceptions.RepositoryException
tigase.component.exceptions.ComponentException
-
unregisterDeviceOld
public IPushSettings unregisterDeviceOld(tigase.xmpp.jid.BareJID serviceJid, tigase.xmpp.jid.BareJID userJid, java.lang.String provider, java.lang.String deviceId) throws tigase.component.exceptions.RepositoryException, tigase.component.exceptions.ComponentException
- Throws:
tigase.component.exceptions.RepositoryException
tigase.component.exceptions.ComponentException
-
getNodeSettings
public IPushSettings getNodeSettings(tigase.xmpp.jid.BareJID serviceJid, java.lang.String node)
-
getNodeSettings
public java.util.stream.Stream<IPushSettings> getNodeSettings(java.lang.String provider, java.lang.String deviceId) throws tigase.component.exceptions.RepositoryException
- Throws:
tigase.component.exceptions.RepositoryException
-
setDataSource
public void setDataSource(tigase.db.DataSource dataSource)
-
main
public static void main(java.lang.String[] args) throws tigase.util.stringprep.TigaseStringprepException, tigase.component.exceptions.RepositoryException
- Throws:
tigase.util.stringprep.TigaseStringprepException
tigase.component.exceptions.RepositoryException
-
-