public abstract class ActiveMQScheduledComponent extends Object implements ActiveMQComponent, Runnable
| Constructor and Description |
|---|
ActiveMQScheduledComponent(long checkPeriod,
TimeUnit timeUnit,
boolean onDemand)
This is useful for cases where we want our own scheduler executor.
|
ActiveMQScheduledComponent(ScheduledExecutorService scheduledExecutorService,
Executor executor,
long checkPeriod,
TimeUnit timeUnit,
boolean onDemand) |
| Modifier and Type | Method and Description |
|---|---|
void |
delay() |
long |
getPeriod() |
protected ActiveMQThreadFactory |
getThreadFactory() |
TimeUnit |
getTimeUnit() |
boolean |
isStarted() |
ActiveMQScheduledComponent |
setPeriod(long period) |
ActiveMQScheduledComponent |
setTimeUnit(TimeUnit timeUnit) |
void |
start() |
void |
stop() |
public ActiveMQScheduledComponent(ScheduledExecutorService scheduledExecutorService, Executor executor, long checkPeriod, TimeUnit timeUnit, boolean onDemand)
public ActiveMQScheduledComponent(long checkPeriod,
TimeUnit timeUnit,
boolean onDemand)
checkPeriod - timeUnit - onDemand - public void start()
start in interface ActiveMQComponentprotected ActiveMQThreadFactory getThreadFactory()
public void delay()
public long getPeriod()
public ActiveMQScheduledComponent setPeriod(long period)
public TimeUnit getTimeUnit()
public ActiveMQScheduledComponent setTimeUnit(TimeUnit timeUnit)
public void stop()
stop in interface ActiveMQComponentpublic boolean isStarted()
isStarted in interface ActiveMQComponentCopyright © 2016 The Apache Software Foundation. All Rights Reserved.