public abstract class ActiveMQScheduledComponent extends Object implements ActiveMQComponent, Runnable
| Constructor and Description |
|---|
ActiveMQScheduledComponent(ScheduledExecutorService scheduledExecutorService,
Executor executor,
long checkPeriod,
TimeUnit timeUnit,
boolean onDemand) |
| Modifier and Type | Method and Description |
|---|---|
void |
delay() |
long |
getPeriod() |
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 void start()
start in interface ActiveMQComponentpublic 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.