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

How to use
LockOutRealm$1
in
org.apache.catalina.realm

Best Java code snippets using org.apache.catalina.realm.LockOutRealm$1 (Showing top 8 results out of 1,395)

origin: codefollower/Tomcat-Research

  @Override
  protected boolean removeEldestEntry(
      Map.Entry<String, LockRecord> eldest) {
    if (size() > cacheSize) {
      // Check to see if this element has been removed too quickly
      long timeInCache = (System.currentTimeMillis() -
          eldest.getValue().getLastFailureTime())/1000;
      if (timeInCache < cacheRemovalWarningTime) {
        log.warn(sm.getString("lockOutRealm.removeWarning",
            eldest.getKey(), Long.valueOf(timeInCache)));
      }
      return true;
    }
    return false;
  }
};
origin: com.ovea.tajin.server/tajin-server-tomcat7

  @Override
  protected boolean removeEldestEntry(
      Map.Entry<String, LockRecord> eldest) {
    if (size() > cacheSize) {
      // Check to see if this element has been removed too quickly
      long timeInCache = (System.currentTimeMillis() -
          eldest.getValue().getLastFailureTime())/1000;
      
      if (timeInCache < cacheRemovalWarningTime) {
        log.warn(sm.getString("lockOutRealm.removeWarning",
            eldest.getKey(), Long.valueOf(timeInCache)));
      }
      return true;
    }
    return false;
  }
};
origin: com.ovea.tajin.servers/tajin-server-jetty9

  @Override
  protected boolean removeEldestEntry(
      Map.Entry<String, LockRecord> eldest) {
    if (size() > cacheSize) {
      // Check to see if this element has been removed too quickly
      long timeInCache = (System.currentTimeMillis() -
          eldest.getValue().getLastFailureTime())/1000;
      
      if (timeInCache < cacheRemovalWarningTime) {
        log.warn(sm.getString("lockOutRealm.removeWarning",
            eldest.getKey(), Long.valueOf(timeInCache)));
      }
      return true;
    }
    return false;
  }
};
origin: org.ops4j.pax.tipi/org.ops4j.pax.tipi.tomcat-embed-core

  @Override
  protected boolean removeEldestEntry(
      Map.Entry<String, LockRecord> eldest) {
    if (size() > cacheSize) {
      // Check to see if this element has been removed too quickly
      long timeInCache = (System.currentTimeMillis() -
          eldest.getValue().getLastFailureTime())/1000;
      if (timeInCache < cacheRemovalWarningTime) {
        log.warn(sm.getString("lockOutRealm.removeWarning",
            eldest.getKey(), Long.valueOf(timeInCache)));
      }
      return true;
    }
    return false;
  }
};
origin: org.apache.catalina/com.springsource.org.apache.catalina

  @Override
  protected boolean removeEldestEntry(
      Map.Entry<String, LockRecord> eldest) {
    if (size() > cacheSize) {
      // Check to see if this element has been removed too quickly
      long timeInCache = (System.currentTimeMillis() -
          eldest.getValue().getLastFailureTime())/1000;
      
      if (timeInCache < cacheRemovalWarningTime) {
        log.warn(sm.getString("lockOutRealm.removeWarning",
            eldest.getKey(), Long.valueOf(timeInCache)));
      }
      return true;
    }
    return false;
  }
};
origin: org.apache.geronimo.ext.tomcat/catalina

  @Override
  protected boolean removeEldestEntry(
      Map.Entry<String, LockRecord> eldest) {
    if (size() > cacheSize) {
      // Check to see if this element has been removed too quickly
      long timeInCache = (System.currentTimeMillis() -
          eldest.getValue().getLastFailureTime())/1000;
      
      if (timeInCache < cacheRemovalWarningTime) {
        log.warn(sm.getString("lockOutRealm.removeWarning",
            eldest.getKey(), Long.valueOf(timeInCache)));
      }
      return true;
    }
    return false;
  }
};
origin: com.ovea.tajin.server/tajin-server-jetty9

  @Override
  protected boolean removeEldestEntry(
      Map.Entry<String, LockRecord> eldest) {
    if (size() > cacheSize) {
      // Check to see if this element has been removed too quickly
      long timeInCache = (System.currentTimeMillis() -
          eldest.getValue().getLastFailureTime())/1000;
      
      if (timeInCache < cacheRemovalWarningTime) {
        log.warn(sm.getString("lockOutRealm.removeWarning",
            eldest.getKey(), Long.valueOf(timeInCache)));
      }
      return true;
    }
    return false;
  }
};
origin: org.apache.tomcat/tomcat-catalina

  @Override
  protected boolean removeEldestEntry(
      Map.Entry<String, LockRecord> eldest) {
    if (size() > cacheSize) {
      // Check to see if this element has been removed too quickly
      long timeInCache = (System.currentTimeMillis() -
          eldest.getValue().getLastFailureTime())/1000;
      if (timeInCache < cacheRemovalWarningTime) {
        log.warn(sm.getString("lockOutRealm.removeWarning",
            eldest.getKey(), Long.valueOf(timeInCache)));
      }
      return true;
    }
    return false;
  }
};
org.apache.catalina.realmLockOutRealm$1

Most used methods

  • size

Popular in Java

  • Start an intent from android
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • getContentResolver (Context)
  • findViewById (Activity)
  • MessageDigest (java.security)
    Uses a one-way hash function to turn an arbitrary number of bytes into a fixed-length byte sequence.
  • PriorityQueue (java.util)
    A PriorityQueue holds elements on a priority heap, which orders the elements according to their natu
  • Timer (java.util)
    Timers schedule one-shot or recurring TimerTask for execution. Prefer java.util.concurrent.Scheduled
  • JComboBox (javax.swing)
  • LogFactory (org.apache.commons.logging)
    Factory for creating Log instances, with discovery and configuration features similar to that employ
  • SAXParseException (org.xml.sax)
    Encapsulate an XML parse error or warning.> This module, both source code and documentation, is in t
  • Top plugins for Android Studio
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