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

How to use
loginFailureId
method
in
org.keycloak.models.sessions.infinispan.stream.Mappers

Best Java code snippets using org.keycloak.models.sessions.infinispan.stream.Mappers.loginFailureId (Showing top 2 results out of 315)

origin: org.keycloak/keycloak-model-sessions-infinispan

@Override
public void removeAllUserLoginFailures(RealmModel realm) {
  Iterator<LoginFailureKey> itr = loginFailureCache.entrySet().stream().filter(UserLoginFailurePredicate.create(realm.getId())).map(Mappers.loginFailureId()).iterator();
  while (itr.hasNext()) {
    LoginFailureKey key = itr.next();
    tx.remove(loginFailureCache, key);
  }
}
origin: org.keycloak/keycloak-model-infinispan

private void removeAllLocalUserLoginFailuresEvent(String realmId) {
  FuturesHelper futures = new FuturesHelper();
  Cache<LoginFailureKey, SessionEntityWrapper<LoginFailureEntity>> localCache = CacheDecorators.localCache(loginFailureCache);
  Cache<LoginFailureKey, SessionEntityWrapper<LoginFailureEntity>> localCacheStoreIgnore = CacheDecorators.skipCacheLoaders(localCache);
  localCacheStoreIgnore
      .entrySet()
      .stream()
      .filter(UserLoginFailurePredicate.create(realmId))
      .map(Mappers.loginFailureId())
      .forEach(loginFailureKey -> {
        // Remove loginFailure from remoteCache too. Use removeAsync for better perf
        Future future = localCache.removeAsync(loginFailureKey);
        futures.addTask(future);
      });
  futures.waitForAllToFinish();
  log.debugf("Removed %d login failures in realm %s", futures.size(), realmId);
}
org.keycloak.models.sessions.infinispan.streamMappersloginFailureId

Popular methods of Mappers

  • authClientSessionSetMapper
  • clientSessionEntity
  • clientSessionToUserSessionId
  • clientSessionToUserSessionTimestamp
  • sessionId
  • userSessionEntity

Popular in Java

  • Making http post requests using okhttp
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • addToBackStack (FragmentTransaction)
  • putExtra (Intent)
  • Font (java.awt)
    The Font class represents fonts, which are used to render text in a visible way. A font provides the
  • Menu (java.awt)
  • Map (java.util)
    A Map is a data structure consisting of a set of keys and values in which each key is mapped to a si
  • PriorityQueue (java.util)
    A PriorityQueue holds elements on a priority heap, which orders the elements according to their natu
  • AtomicInteger (java.util.concurrent.atomic)
    An int value that may be updated atomically. See the java.util.concurrent.atomic package specificati
  • Loader (org.hibernate.loader)
    Abstract superclass of object loading (and querying) strategies. This class implements useful common
  • 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