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.
  • Constructor Details

    • InMemoryPushRepository

      public InMemoryPushRepository()
  • Method Details

    • registerDevice

      public IPushSettings registerDevice(tigase.xmpp.jid.BareJID serviceJid, tigase.xmpp.jid.BareJID userJid, String provider, String deviceId, String deviceSecondId) throws tigase.component.exceptions.RepositoryException
      Throws:
      tigase.component.exceptions.RepositoryException
    • unregisterDevice

      public IPushSettings unregisterDevice(tigase.xmpp.jid.BareJID serviceJid, tigase.xmpp.jid.BareJID userJid, String provider, 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, String provider, 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, String node)
    • getNodeSettings

      public Stream<IPushSettings> getNodeSettings(String provider, String deviceId) throws tigase.component.exceptions.RepositoryException
      Throws:
      tigase.component.exceptions.RepositoryException
    • getStatistics

      public Map<String,IPushRepository.Statistics> getStatistics() throws tigase.component.exceptions.RepositoryException
      Throws:
      tigase.component.exceptions.RepositoryException
    • setDataSource

      public void setDataSource(tigase.db.DataSource dataSource)
    • main

      public static void main(String[] args) throws tigase.util.stringprep.TigaseStringprepException, tigase.component.exceptions.RepositoryException
      Throws:
      tigase.util.stringprep.TigaseStringprepException
      tigase.component.exceptions.RepositoryException