jPOS 1.6.1 API Documentation

org.jpos.iso.filter
Class DelayFilter

java.lang.Object
  extended by org.jpos.iso.filter.DelayFilter
All Implemented Interfaces:
Configurable, ReConfigurable, ISOFilter

public class DelayFilter
extends java.lang.Object
implements ISOFilter, ReConfigurable

DelayFilter can be used in order to slow down an ISOChannel. Usefull while debugging an application or simulating a server


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.jpos.iso.ISOFilter
ISOFilter.VetoException
 
Constructor Summary
DelayFilter()
           
DelayFilter(int delay)
           
 
Method Summary
 ISOMsg filter(ISOChannel channel, ISOMsg m, LogEvent evt)
           
 void setConfiguration(Configuration cfg)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DelayFilter

public DelayFilter()

DelayFilter

public DelayFilter(int delay)
Parameters:
delay - desired delay, expressed in milliseconds
Method Detail

setConfiguration

public void setConfiguration(Configuration cfg)
Specified by:
setConfiguration in interface Configurable
Parameters:
cfg -
  • delay (expressed in milliseconds)

filter

public ISOMsg filter(ISOChannel channel,
                     ISOMsg m,
                     LogEvent evt)
Specified by:
filter in interface ISOFilter
Parameters:
channel - current ISOChannel instance
m - ISOMsg to filter
evt - LogEvent
Returns:
an ISOMsg (possibly parameter m)

jPOS.org