public class MessageCounterManagerImpl extends Object implements MessageCounterManager
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_MAX_DAY_COUNT |
static long |
DEFAULT_SAMPLE_PERIOD |
static long |
MIN_SAMPLE_PERIOD |
Constructor and Description |
---|
MessageCounterManagerImpl(ScheduledExecutorService scheduledThreadPool,
Executor executor) |
Modifier and Type | Method and Description |
---|---|
void |
clear() |
int |
getMaxDayCount() |
Set<MessageCounter> |
getMessageCounters() |
long |
getSamplePeriod() |
void |
registerMessageCounter(String name,
MessageCounter counter) |
void |
reschedule(long newPeriod) |
void |
resetAllCounterHistories() |
void |
resetAllCounters() |
void |
setMaxDayCount(int count) |
void |
start() |
void |
stop() |
MessageCounter |
unregisterMessageCounter(String name) |
public static final long DEFAULT_SAMPLE_PERIOD
public static final long MIN_SAMPLE_PERIOD
public static final int DEFAULT_MAX_DAY_COUNT
public MessageCounterManagerImpl(ScheduledExecutorService scheduledThreadPool, Executor executor)
public void start()
start
in interface MessageCounterManager
public void stop()
stop
in interface MessageCounterManager
public void clear()
clear
in interface MessageCounterManager
public void reschedule(long newPeriod)
reschedule
in interface MessageCounterManager
public long getSamplePeriod()
getSamplePeriod
in interface MessageCounterManager
public int getMaxDayCount()
getMaxDayCount
in interface MessageCounterManager
public void setMaxDayCount(int count)
setMaxDayCount
in interface MessageCounterManager
public void registerMessageCounter(String name, MessageCounter counter)
registerMessageCounter
in interface MessageCounterManager
public MessageCounter unregisterMessageCounter(String name)
unregisterMessageCounter
in interface MessageCounterManager
public Set<MessageCounter> getMessageCounters()
public void resetAllCounters()
resetAllCounters
in interface MessageCounterManager
public void resetAllCounterHistories()
resetAllCounterHistories
in interface MessageCounterManager
Copyright © 2017 JBoss by Red Hat. All rights reserved.