Tabnine Logo
TimerProvider.scheduleTask
Code IndexAdd Tabnine to your IDE (free)

How to use
scheduleTask
method
in
org.keycloak.timer.TimerProvider

Best Java code snippets using org.keycloak.timer.TimerProvider.scheduleTask (Showing top 2 results out of 315)

origin: org.keycloak/keycloak-model-jpa

protected void startGlobalStats(KeycloakSession session, int globalStatsIntervalSecs) {
  logger.debugf("Started Hibernate statistics with the interval %s seconds", globalStatsIntervalSecs);
  TimerProvider timer = session.getProvider(TimerProvider.class);
  timer.scheduleTask(new HibernateStatsReporter(emf), globalStatsIntervalSecs * 1000, "ReportHibernateGlobalStats");
}
origin: org.keycloak/keycloak-model-infinispan

  protected void setupPeriodicTimer(KeycloakSession kcSession, AbstractLastSessionRefreshStore store, long timerIntervalMs, String eventKey) {
    TimerProvider timer = kcSession.getProvider(TimerProvider.class);
    timer.scheduleTask((KeycloakSession keycloakSession) -> {

      store.checkSendingMessage(keycloakSession, Time.currentTime());

    }, timerIntervalMs, eventKey);
  }
}
org.keycloak.timerTimerProviderscheduleTask

Popular methods of TimerProvider

    Popular in Java

    • Finding current android device location
    • putExtra (Intent)
    • setScale (BigDecimal)
    • compareTo (BigDecimal)
    • Iterator (java.util)
      An iterator over a sequence of objects, such as a collection.If a collection has been changed since
    • TimeZone (java.util)
      TimeZone represents a time zone offset, and also figures out daylight savings. Typically, you get a
    • ZipFile (java.util.zip)
      This class provides random read access to a zip file. You pay more to read the zip file's central di
    • Servlet (javax.servlet)
      Defines methods that all servlets must implement. A servlet is a small Java program that runs within
    • Base64 (org.apache.commons.codec.binary)
      Provides Base64 encoding and decoding as defined by RFC 2045.This class implements section 6.8. Base
    • Location (org.springframework.beans.factory.parsing)
      Class that models an arbitrary location in a Resource.Typically used to track the location of proble
    • Top 12 Jupyter Notebook extensions
    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