congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
ConnectionThrottleFilter
Code IndexAdd Tabnine to your IDE (free)

How to use
ConnectionThrottleFilter
in
org.apache.mina.filter.firewall

Best Java code snippets using org.apache.mina.filter.firewall.ConnectionThrottleFilter (Showing top 3 results out of 315)

origin: org.apache.mina/mina-core

  @Override
  public void sessionCreated(NextFilter nextFilter, IoSession session) throws Exception {
    if (!isConnectionOk(session)) {
      LOGGER.warn("Connections coming in too fast; closing.");
      session.closeNow();
    }

    nextFilter.sessionCreated(session);
  }
}
origin: kaazing/gateway

  @Override
  public void sessionCreated(NextFilter nextFilter, IoSession session)
      throws Exception {
    if (!isConnectionOk(session)) {
      LOGGER.warn("Connections coming in too fast; closing.");
      session.close(true);
    }
    nextFilter.sessionCreated(session);
  }
}
origin: org.apache.directory.api/api-ldap-client-all

  @Override
  public void sessionCreated(NextFilter nextFilter, IoSession session) throws Exception {
    if (!isConnectionOk(session)) {
      LOGGER.warn("Connections coming in too fast; closing.");
      session.closeNow();
    }

    nextFilter.sessionCreated(session);
  }
}
org.apache.mina.filter.firewallConnectionThrottleFilter

Javadoc

A IoFilter which blocks connections from connecting at a rate faster than the specified interval.

Most used methods

  • isConnectionOk
    Method responsible for deciding if a connection is OK to continue

Popular in Java

  • Running tasks concurrently on multiple threads
  • onCreateOptionsMenu (Activity)
  • getApplicationContext (Context)
  • findViewById (Activity)
  • Font (java.awt)
    The Font class represents fonts, which are used to render text in a visible way. A font provides the
  • Thread (java.lang)
    A thread is a thread of execution in a program. The Java Virtual Machine allows an application to ha
  • LinkedList (java.util)
    Doubly-linked list implementation of the List and Dequeinterfaces. Implements all optional list oper
  • Stream (java.util.stream)
    A sequence of elements supporting sequential and parallel aggregate operations. The following exampl
  • Filter (javax.servlet)
    A filter is an object that performs filtering tasks on either the request to a resource (a servlet o
  • ServletException (javax.servlet)
    Defines a general exception a servlet can throw when it encounters difficulty.
  • Top plugins for WebStorm
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