Class InMemoryPushRepository

    • Constructor Detail

      • InMemoryPushRepository

        public InMemoryPushRepository()
    • Method Detail

      • registerDevice

        public IPushSettings registerDevice​(tigase.xmpp.jid.BareJID serviceJid,
                                            tigase.xmpp.jid.BareJID userJid,
                                            java.lang.String provider,
                                            java.lang.String deviceId,
                                            java.lang.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,
                                              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
      • getStatistics

        public java.util.Map<java.lang.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​(java.lang.String[] args)
                         throws tigase.util.stringprep.TigaseStringprepException,
                                tigase.component.exceptions.RepositoryException
        Throws:
        tigase.util.stringprep.TigaseStringprepException
        tigase.component.exceptions.RepositoryException