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 ActiveMQComponent
protected 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 ActiveMQComponent
public boolean isStarted()
isStarted
in interface ActiveMQComponent
Copyright © 2017 JBoss by Red Hat. All rights reserved.