Codota Logo
KeepAliveManager.increaseNextReconnectAt
Code IndexAdd Codota to your IDE (free)

How to use
increaseNextReconnectAt
method
in
rocks.inspectit.agent.java.connection.impl.KeepAliveManager

Best Java code snippets using rocks.inspectit.agent.java.connection.impl.KeepAliveManager.increaseNextReconnectAt (Showing top 1 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
ArrayList a =
  • Codota Iconnew ArrayList<String>()
  • Codota Iconnew ArrayList()
  • Codota Iconnew ArrayList<Object>()
  • Smart code suggestions by Codota
}
origin: inspectIT/inspectIT

/**
 * Checks whether an attempt to reconnect should be executed. This method also handles the
 * counter variables to keep track of the state.
 *
 * @return If we should execute reconnect.
 */
private boolean shouldReconnect() {
  noConnectionCount++;
  boolean shouldReconnect = noConnectionCount >= nextReconnectAt;
  if (shouldReconnect) {
    noConnectionCount = 0;
    increaseNextReconnectAt();
  }
  return shouldReconnect;
}
rocks.inspectit.agent.java.connection.implKeepAliveManagerincreaseNextReconnectAt

Javadoc

Exponentially increase the next reconnect count until reaching #MAX_NEXT_RECONNECT.

Popular methods of KeepAliveManager

  • sendKeepAlive
    Sends keep alive signal if connection to the server exists. Otherwise does try to reconnect in the e
  • shouldReconnect
    Checks whether an attempt to reconnect should be executed. This method also handles the counter vari

Popular in Java

  • Running tasks concurrently on multiple threads
  • getExternalFilesDir (Context)
  • orElseThrow (Optional)
  • getSharedPreferences (Context)
  • EOFException (java.io)
    Thrown when a program encounters the end of a file or stream during an input operation.
  • Permission (java.security)
    Abstract class for representing access to a system resource. All permissions have a name (whose inte
  • Time (java.sql)
    Java representation of an SQL TIME value. Provides utilities to format and parse the time's represen
  • Random (java.util)
    This class provides methods that return pseudo-random values.It is dangerous to seed Random with the
  • Reference (javax.naming)
  • JOptionPane (javax.swing)
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now