org.jpos.core
Class VolatileSequencer
java.lang.Object
org.jpos.core.VolatileSequencer
- All Implemented Interfaces:
- Sequencer, VolatileSequencerMBean
public class VolatileSequencer
- extends java.lang.Object
- implements Sequencer, VolatileSequencerMBean
- Since:
- jPOS 1.1
A simple sequencer intended for Debugging applications.
Production grade Sequencers are required to be persistent capables
- Version:
- $Id: VolatileSequencer.java 2594 2008-01-22 16:41:31Z apr $
- Author:
- apr@cs.com.uy
|
Method Summary |
int |
get(java.lang.String counterName)
|
int |
get(java.lang.String counterName,
int add)
|
java.lang.String[] |
getCounterNames()
|
int |
set(java.lang.String counterName,
int newValue)
|
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
VolatileSequencer
public VolatileSequencer()
get
public int get(java.lang.String counterName,
int add)
- Specified by:
get in interface Sequencer- Specified by:
get in interface VolatileSequencerMBean
- Parameters:
counterName - add - increment
- Returns:
- counterName's value + add
get
public int get(java.lang.String counterName)
- Specified by:
get in interface Sequencer
- Parameters:
counterName -
- Returns:
- counterName's value + 1
set
public int set(java.lang.String counterName,
int newValue)
- Specified by:
set in interface Sequencer- Specified by:
set in interface VolatileSequencerMBean
- Parameters:
counterName - newValue -
- Returns:
- oldValue
getCounterNames
public java.lang.String[] getCounterNames()
- Specified by:
getCounterNames in interface VolatileSequencerMBean