Package org.apache.cxf.transport.jms
Class ThrottlingCounter
java.lang.Object
org.apache.cxf.transport.jms.ThrottlingCounter
- All Implemented Interfaces:
Counter
Counter that throttles a jms listener on a high and low water mark.
When the counter reaches the high watermark the listener will be stopped.
When the counter reaches the low watermark the listener will be started.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal intfinal intvoidsetListenerContainer(JMSListenerContainer listenerContainer)
-
Constructor Details
-
ThrottlingCounter
public ThrottlingCounter(int lowWatermark, int highWatermark)
-
-
Method Details
-
setListenerContainer
-
incrementAndGet
public final int incrementAndGet()- Specified by:
incrementAndGetin interfaceCounter
-
decrementAndGet
public final int decrementAndGet()- Specified by:
decrementAndGetin interfaceCounter
-