org.jpos.iso.filter
Class DelayFilter
java.lang.Object
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
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DelayFilter
public DelayFilter()
DelayFilter
public DelayFilter(int delay)
- Parameters:
delay - desired delay, expressed in milliseconds
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 instancem - ISOMsg to filterevt - LogEvent
- Returns:
- an ISOMsg (possibly parameter m)