Class StanzaCollector.Configuration

  • Enclosing class:
    StanzaCollector

    public static final class StanzaCollector.Configuration
    extends java.lang.Object
    • Method Detail

      • setStanzaFilter

        public StanzaCollector.Configuration setStanzaFilter​(StanzaFilter stanzaFilter)
        Set the stanza filter used by this collector. If null, then all stanzas will get collected by this collector.
        Parameters:
        stanzaFilter - TODO javadoc me please
        Returns:
        a reference to this configuration.
      • setSize

        public StanzaCollector.Configuration setSize​(int size)
        Set the maximum size of this collector, i.e. how many stanzas this collector will collect before dropping old ones.
        Parameters:
        size - TODO javadoc me please
        Returns:
        a reference to this configuration.
      • setCollectorToReset

        public StanzaCollector.Configuration setCollectorToReset​(StanzaCollector collector)
        Set the collector which timeout for the next result is reset once this collector collects a packet.
        Parameters:
        collector - TODO javadoc me please
        Returns:
        a reference to this configuration.