Package org.apache.activemq.broker.jmx
Class AbortSlowConsumerStrategyView
- java.lang.Object
-
- org.apache.activemq.broker.jmx.AbortSlowConsumerStrategyView
-
- All Implemented Interfaces:
AbortSlowConsumerStrategyViewMBean
- Direct Known Subclasses:
AbortSlowAckConsumerStrategyView
public class AbortSlowConsumerStrategyView extends Object implements AbortSlowConsumerStrategyViewMBean
-
-
Constructor Summary
Constructors Constructor Description AbortSlowConsumerStrategyView(ManagedRegionBroker managedRegionBroker, AbortSlowConsumerStrategy slowConsumerStrategy)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
abortConnection(String objectNameOfConsumerToAbort)
void
abortConnection(ObjectName consumerToAbort)
void
abortConsumer(String objectNameOfConsumerToAbort)
void
abortConsumer(ObjectName consumerToAbort)
long
getCheckPeriod()
long
getMaxSlowCount()
long
getMaxSlowDuration()
TabularData
getSlowConsumers()
void
setMaxSlowCount(long maxSlowCount)
void
setMaxSlowDuration(long maxSlowDuration)
-
-
-
Constructor Detail
-
AbortSlowConsumerStrategyView
public AbortSlowConsumerStrategyView(ManagedRegionBroker managedRegionBroker, AbortSlowConsumerStrategy slowConsumerStrategy)
-
-
Method Detail
-
getMaxSlowCount
public long getMaxSlowCount()
- Specified by:
getMaxSlowCount
in interfaceAbortSlowConsumerStrategyViewMBean
-
setMaxSlowCount
public void setMaxSlowCount(long maxSlowCount)
- Specified by:
setMaxSlowCount
in interfaceAbortSlowConsumerStrategyViewMBean
-
getMaxSlowDuration
public long getMaxSlowDuration()
- Specified by:
getMaxSlowDuration
in interfaceAbortSlowConsumerStrategyViewMBean
-
setMaxSlowDuration
public void setMaxSlowDuration(long maxSlowDuration)
- Specified by:
setMaxSlowDuration
in interfaceAbortSlowConsumerStrategyViewMBean
-
getCheckPeriod
public long getCheckPeriod()
- Specified by:
getCheckPeriod
in interfaceAbortSlowConsumerStrategyViewMBean
-
getSlowConsumers
public TabularData getSlowConsumers() throws OpenDataException
- Specified by:
getSlowConsumers
in interfaceAbortSlowConsumerStrategyViewMBean
- Throws:
OpenDataException
-
abortConsumer
public void abortConsumer(ObjectName consumerToAbort)
- Specified by:
abortConsumer
in interfaceAbortSlowConsumerStrategyViewMBean
-
abortConnection
public void abortConnection(ObjectName consumerToAbort)
- Specified by:
abortConnection
in interfaceAbortSlowConsumerStrategyViewMBean
-
abortConsumer
public void abortConsumer(String objectNameOfConsumerToAbort)
- Specified by:
abortConsumer
in interfaceAbortSlowConsumerStrategyViewMBean
-
abortConnection
public void abortConnection(String objectNameOfConsumerToAbort)
- Specified by:
abortConnection
in interfaceAbortSlowConsumerStrategyViewMBean
-
-