public abstract class ActiveMQScheduledComponent extends Object implements HornetQComponent, 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() |
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 HornetQComponent
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 HornetQComponent
public boolean isStarted()
isStarted
in interface HornetQComponent
Copyright © 2018 JBoss by Red Hat. All rights reserved.