org.jpos.core
Class VolatileSequencer

java.lang.Object
  extended by 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

Constructor Summary
VolatileSequencer()
           
 
Method Summary
 int get(String counterName)
           
 int get(String counterName, int add)
           
 String[] getCounterNames()
           
 int set(String counterName, int newValue)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VolatileSequencer

public VolatileSequencer()
Method Detail

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.