Class TestSpamModule

    • Field Detail

      • badWords

        @ConfigField(desc="Bad words",
                     alias="bad-words")
        protected String[] badWords
        This might be changed in one threads while it is iterated in processPacket(...) in another thread. We expect that changes are very rare and small, most of operations are just iterations.
    • Constructor Detail

      • TestSpamModule

        public TestSpamModule()
    • Method Detail

      • everyMinute

        public void everyMinute()
      • getModuleCriteria

        public Criteria getModuleCriteria()
        Description copied from interface: Module
        Returns critera used by Component to select module to handle incoming stanza.
        Returns:
        criteria of selecting module.
      • getMessagesCounter

        public long getMessagesCounter()
      • getTotalSpamCounter

        public long getTotalSpamCounter()
      • setPacketTypes

        public void setPacketTypes​(String[] packetTypes)
      • initBindings

        public void initBindings​(Bindings binds)