public class ScheduledExecutors extends Object
Modifier and Type | Class and Description |
---|---|
static class |
ScheduledExecutors.Signal |
Constructor and Description |
---|
ScheduledExecutors() |
Modifier and Type | Method and Description |
---|---|
static ScheduledExecutorFactory |
createFactory(Lifecycle lifecycle) |
static ScheduledExecutorService |
fixed(int corePoolSize,
String nameFormat) |
static void |
scheduleAtFixedRate(ScheduledExecutorService exec,
org.joda.time.Duration rate,
Callable<ScheduledExecutors.Signal> callable) |
static void |
scheduleAtFixedRate(ScheduledExecutorService exec,
org.joda.time.Duration initialDelay,
org.joda.time.Duration rate,
Callable<ScheduledExecutors.Signal> callable) |
static void |
scheduleAtFixedRate(ScheduledExecutorService exec,
org.joda.time.Duration initialDelay,
org.joda.time.Duration period,
Runnable runnable)
Run runnable once every period, after the given initial delay.
|
static void |
scheduleAtFixedRate(ScheduledExecutorService exec,
org.joda.time.Duration rate,
Runnable runnable)
Run runnable once every period.
|
static void |
scheduleWithFixedDelay(ScheduledExecutorService exec,
org.joda.time.Duration delay,
Callable<ScheduledExecutors.Signal> callable)
Run callable repeatedly with the given delay between calls, after the given
initial delay, until it returns Signal.STOP.
|
static void |
scheduleWithFixedDelay(ScheduledExecutorService exec,
org.joda.time.Duration initialDelay,
org.joda.time.Duration delay,
Callable<ScheduledExecutors.Signal> callable)
Run callable repeatedly with the given delay between calls, until it
returns Signal.STOP.
|
static void |
scheduleWithFixedDelay(ScheduledExecutorService exec,
org.joda.time.Duration initialDelay,
org.joda.time.Duration delay,
Runnable runnable)
Run runnable repeatedly with the given delay between calls, after the given
initial delay.
|
static void |
scheduleWithFixedDelay(ScheduledExecutorService exec,
org.joda.time.Duration delay,
Runnable runnable)
Run runnable repeatedly with the given delay between calls.
|
public static void scheduleWithFixedDelay(ScheduledExecutorService exec, org.joda.time.Duration delay, Runnable runnable)
public static void scheduleWithFixedDelay(ScheduledExecutorService exec, org.joda.time.Duration initialDelay, org.joda.time.Duration delay, Runnable runnable)
public static void scheduleWithFixedDelay(ScheduledExecutorService exec, org.joda.time.Duration delay, Callable<ScheduledExecutors.Signal> callable)
public static void scheduleWithFixedDelay(ScheduledExecutorService exec, org.joda.time.Duration initialDelay, org.joda.time.Duration delay, Callable<ScheduledExecutors.Signal> callable)
public static void scheduleAtFixedRate(ScheduledExecutorService exec, org.joda.time.Duration rate, Runnable runnable)
public static void scheduleAtFixedRate(ScheduledExecutorService exec, org.joda.time.Duration initialDelay, org.joda.time.Duration period, Runnable runnable)
public static void scheduleAtFixedRate(ScheduledExecutorService exec, org.joda.time.Duration rate, Callable<ScheduledExecutors.Signal> callable)
public static void scheduleAtFixedRate(ScheduledExecutorService exec, org.joda.time.Duration initialDelay, org.joda.time.Duration rate, Callable<ScheduledExecutors.Signal> callable)
public static ScheduledExecutorFactory createFactory(Lifecycle lifecycle)
public static ScheduledExecutorService fixed(int corePoolSize, String nameFormat)
Copyright © 2011–2017. All rights reserved.