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

    • Start an intent from android
    • getOriginalFilename (MultipartFile)
      Return the original filename in the client's filesystem.This may contain path information depending
    • getApplicationContext (Context)
    • notifyDataSetChanged (ArrayAdapter)
    • BufferedInputStream (java.io)
      A BufferedInputStream adds functionality to another input stream-namely, the ability to buffer the i
    • PrintWriter (java.io)
      Wraps either an existing OutputStream or an existing Writerand provides convenience methods for prin
    • Date (java.sql)
      A class which can consume and produce dates in SQL Date format. Dates are represented in SQL as yyyy
    • Collectors (java.util.stream)
    • BasicDataSource (org.apache.commons.dbcp)
      Basic implementation of javax.sql.DataSource that is configured via JavaBeans properties. This is no
    • LoggerFactory (org.slf4j)
      The LoggerFactory is a utility class producing Loggers for various logging APIs, most notably for lo
    • Top 17 PhpStorm Plugins
    Tabnine Logo
    • Products

      Search for Java codeSearch for JavaScript code
    • IDE Plugins

      IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
    • Company

      About UsContact UsCareers
    • Resources

      FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
    Get Tabnine for your IDE now