Class VolatileSequencer
java.lang.Object
org.jpos.core.VolatileSequencer
- All Implemented Interfaces:
Sequencer, VolatileSequencerMBean
A simple sequencer intended for Debugging applications.
Production grade Sequencers are required to be persistent capables
Production grade Sequencers are required to be persistent capables
- Since:
- jPOS 1.1
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintIncrementscounterNameby 1 and returns its new value.intIncrementscounterNamebyaddand returns its new value.String[]Returns the names of every registered counter.intReplaces the value ofcounterName.
-
Constructor Details
-
VolatileSequencer
public VolatileSequencer()Default constructor.
-
-
Method Details
-
get
Description copied from interface:SequencerIncrementscounterNamebyaddand returns its new value.- Specified by:
getin interfaceSequencer- Specified by:
getin interfaceVolatileSequencerMBean- Parameters:
counterName- name of the counteradd- increment- Returns:
- counterName's value + add
-
get
-
set
Description copied from interface:SequencerReplaces the value ofcounterName.- Specified by:
setin interfaceSequencer- Specified by:
setin interfaceVolatileSequencerMBean- Parameters:
counterName- name of the counternewValue- value to assign to the counter- Returns:
- oldValue
-
getCounterNames
Description copied from interface:VolatileSequencerMBeanReturns the names of every registered counter.- Specified by:
getCounterNamesin interfaceVolatileSequencerMBean- Returns:
- array of counter names
-