org.jpos.core
Class VolatileSequencer
java.lang.Object
org.jpos.core.VolatileSequencer
- All Implemented Interfaces:
- Sequencer, VolatileSequencerMBean
public class VolatileSequencer
- extends 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$
- Author:
- apr@cs.com.uy
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
VolatileSequencer
public VolatileSequencer()
get
public int get(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(String counterName)
- Specified by:
get in interface Sequencer
- Parameters:
counterName -
- Returns:
- counterName's value + 1
set
public int set(String counterName,
int newValue)
- Specified by:
set in interface Sequencer- Specified by:
set in interface VolatileSequencerMBean
- Parameters:
counterName - newValue -
- Returns:
- oldValue
getCounterNames
public String[] getCounterNames()
- Specified by:
getCounterNames in interface VolatileSequencerMBean
Copyright © 1998-2012 jPOS.org. All Rights Reserved.