Tabnine Logo
StanzaCollector$Configuration.setSize
Code IndexAdd Tabnine to your IDE (free)

How to use
setSize
method
in
org.jivesoftware.smack.StanzaCollector$Configuration

Best Java code snippets using org.jivesoftware.smack.StanzaCollector$Configuration.setSize (Showing top 2 results out of 315)

origin: igniterealtime/Smack

protected void performActionAndWaitUntilStanzaReceived(Runnable action, XMPPConnection connection, StanzaFilter filter)
        throws NoResponseException, XMPPErrorException, NotConnectedException, InterruptedException {
  StanzaCollector.Configuration configuration = StanzaCollector.newConfiguration().setStanzaFilter(
          filter).setSize(1);
  StanzaCollector collector = connection.createStanzaCollector(configuration);
  try {
    action.run();
    collector.nextResultOrThrow(timeout);
  }
  finally {
    collector.cancel();
  }
}
origin: igniterealtime/Smack

  protected TestStanzaCollector(XMPPConnection conection, StanzaFilter packetFilter, int size) {
    super(conection, StanzaCollector.newConfiguration().setStanzaFilter(packetFilter).setSize(size));
  }
}
org.jivesoftware.smackStanzaCollector$ConfigurationsetSize

Javadoc

Set the maximum size of this collector, i.e. how many stanzas this collector will collect before dropping old ones.

Popular methods of StanzaCollector$Configuration

  • setStanzaFilter
    Set the stanza filter used by this collector. If null, then all stanzas will get collected by this c
  • setCollectorToReset
    Set the collector which timeout for the next result is reset once this collector collects a packet.
  • <init>
  • setRequest

Popular in Java

  • Parsing JSON documents to java classes using gson
  • findViewById (Activity)
  • addToBackStack (FragmentTransaction)
  • onRequestPermissionsResult (Fragment)
  • GridBagLayout (java.awt)
    The GridBagLayout class is a flexible layout manager that aligns components vertically and horizonta
  • HttpURLConnection (java.net)
    An URLConnection for HTTP (RFC 2616 [http://tools.ietf.org/html/rfc2616]) used to send and receive d
  • InetAddress (java.net)
    An Internet Protocol (IP) address. This can be either an IPv4 address or an IPv6 address, and in pra
  • TimerTask (java.util)
    The TimerTask class represents a task to run at a specified time. The task may be run once or repeat
  • BoxLayout (javax.swing)
  • FileUtils (org.apache.commons.io)
    General file manipulation utilities. Facilities are provided in the following areas: * writing to a
  • CodeWhisperer alternatives
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now