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

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

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

origin: org.apache.mina/mina-core

/**
 * Constructor that takes in a specified wait time.
 *
 * @param allowedInterval
 *     The number of milliseconds a client is allowed to wait
 *     before making another successful connection
 *
 */
public ConnectionThrottleFilter(long allowedInterval) {
  this.allowedInterval = allowedInterval;
  clients = new ConcurrentHashMap<String, Long>();
  // Create the cleanup thread
  ExpiredSessionThread cleanupThread = new ExpiredSessionThread();
  // And make it a daemon so that it's killed when the server exits
  cleanupThread.setDaemon(true);
  // start the cleanuo thread now
  cleanupThread.start();
}
origin: org.apache.directory.api/api-ldap-client-all

/**
 * Constructor that takes in a specified wait time.
 *
 * @param allowedInterval
 *     The number of milliseconds a client is allowed to wait
 *     before making another successful connection
 *
 */
public ConnectionThrottleFilter(long allowedInterval) {
  this.allowedInterval = allowedInterval;
  clients = new ConcurrentHashMap<String, Long>();
  // Create the cleanup thread
  ExpiredSessionThread cleanupThread = new ExpiredSessionThread();
  // And make it a daemon so that it's killed when the server exits
  cleanupThread.setDaemon(true);
  // start the cleanuo thread now
  cleanupThread.start();
}
org.apache.mina.filter.firewallConnectionThrottleFilter$ExpiredSessionThread

Most used methods

  • <init>
  • setDaemon
  • start

Popular in Java

  • Reading from database using SQL prepared statement
  • getSupportFragmentManager (FragmentActivity)
  • startActivity (Activity)
  • setScale (BigDecimal)
  • InputStream (java.io)
    A readable source of bytes.Most clients will use input streams that read data from the file system (
  • Runnable (java.lang)
    Represents a command that can be executed. Often used to run code in a different Thread.
  • Connection (java.sql)
    A connection represents a link from a Java application to a database. All SQL statements and results
  • LinkedHashMap (java.util)
    LinkedHashMap is an implementation of Map that guarantees iteration order. All optional operations a
  • Semaphore (java.util.concurrent)
    A counting semaphore. Conceptually, a semaphore maintains a set of permits. Each #acquire blocks if
  • ReentrantLock (java.util.concurrent.locks)
    A reentrant mutual exclusion Lock with the same basic behavior and semantics as the implicit monitor
  • Top PhpStorm plugins
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