Package org.jivesoftware.smack
Class StanzaCollector.Configuration
- java.lang.Object
-
- org.jivesoftware.smack.StanzaCollector.Configuration
-
- Enclosing class:
- StanzaCollector
public static final class StanzaCollector.Configuration extends Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StanzaCollector.ConfigurationsetCollectorToReset(StanzaCollector collector)Set the collector which timeout for the next result is reset once this collector collects a packet.StanzaCollector.ConfigurationsetRequest(Stanza request)StanzaCollector.ConfigurationsetSize(int size)Set the maximum size of this collector, i.e.StanzaCollector.ConfigurationsetStanzaFilter(StanzaFilter stanzaFilter)Set the stanza filter used by this collector.
-
-
-
Method Detail
-
setStanzaFilter
public StanzaCollector.Configuration setStanzaFilter(StanzaFilter stanzaFilter)
Set the stanza filter used by this collector. Ifnull, 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.
-
setRequest
public StanzaCollector.Configuration setRequest(Stanza request)
-
-