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

How to use
ScheduleDelay
in
org.eclipse.che.commons.schedule

Best Java code snippets using org.eclipse.che.commons.schedule.ScheduleDelay (Showing top 2 results out of 315)

origin: org.eclipse.che.core/che-core-api-core

@ScheduleDelay(initialDelay = 60, delay = 60)
void cleanStaleMessages() {
 long currentTimeMillis = System.currentTimeMillis();
 delayedMessageRegistry
   .values()
   .forEach(it -> it.removeIf(m -> currentTimeMillis - m.timeMillis > 60_000));
 delayedMessageRegistry.values().removeIf(Queue::isEmpty);
}
origin: org.eclipse.che.core/che-core-commons-schedule

private void launch(Object object, Method method, ScheduleDelay annotation) {
 if (annotation.delayParameterName().isEmpty() && annotation.delay() == 0) {
  throw new RuntimeException("Delay parameter is not configured");
 }
 Launcher launcher = launcherProvider.get();
 launcher.scheduleWithFixedDelay(
   new LoggedRunnable(object, method),
   annotation.initialDelayParameterName().isEmpty()
     ? annotation.initialDelay()
     : getValue(annotation.initialDelayParameterName()),
   annotation.delayParameterName().isEmpty()
     ? annotation.delay()
     : getValue(annotation.delayParameterName()),
   annotation.unit());
}
org.eclipse.che.commons.scheduleScheduleDelay

Most used methods

  • <init>
  • delay
  • delayParameterName
  • initialDelay
  • initialDelayParameterName
  • unit

Popular in Java

  • Making http requests using okhttp
  • getApplicationContext (Context)
  • scheduleAtFixedRate (Timer)
  • setRequestProperty (URLConnection)
  • ByteBuffer (java.nio)
    A buffer for bytes. A byte buffer can be created in either one of the following ways: * #allocate
  • BitSet (java.util)
    The BitSet class implements abit array [http://en.wikipedia.org/wiki/Bit_array]. Each element is eit
  • Locale (java.util)
    Locale represents a language/country/variant combination. Locales are used to alter the presentatio
  • Vector (java.util)
    Vector is an implementation of List, backed by an array and synchronized. All optional operations in
  • Pattern (java.util.regex)
    Patterns are compiled regular expressions. In many cases, convenience methods such as String#matches
  • DateTimeFormat (org.joda.time.format)
    Factory that creates instances of DateTimeFormatter from patterns and styles. Datetime formatting i
  • Github Copilot alternatives
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