public class SamplerServiceImpl extends AbstractService implements SamplerService
logger
Constructor and Description |
---|
SamplerServiceImpl() |
Modifier and Type | Method and Description |
---|---|
java.io.Closeable |
addSampler(java.lang.Runnable sampler,
long initialDelay,
long period,
java.util.concurrent.TimeUnit timeUnit)
Schedules runnable to be run at given period with the given initial delay
|
java.io.Closeable |
addSampler(java.lang.Runnable sampler,
long period,
java.util.concurrent.TimeUnit timeUnit)
Schedules runnable to be run at given period.
|
protected void |
doStart() |
protected void |
doStop() |
boolean |
isEnabled()
Is the service enabled.
|
getLogger, getName, isStarted, isStartedOrStarting, isStopped, isStoppedOrStopping, start, stop
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getLogger, getName, isStarted, isStartedOrStarting, isStopped, isStoppedOrStopping, start, stop
protected void doStart()
doStart
in class AbstractService
protected void doStop()
doStop
in class AbstractService
public boolean isEnabled()
Service
public java.io.Closeable addSampler(java.lang.Runnable sampler, long period, java.util.concurrent.TimeUnit timeUnit)
SamplerService
addSampler
in interface SamplerService
public java.io.Closeable addSampler(java.lang.Runnable sampler, long initialDelay, long period, java.util.concurrent.TimeUnit timeUnit)
SamplerService
addSampler
in interface SamplerService