messageProcessor
Class ReplayDetection

java.lang.Object
  extended by messageProcessor.ReplayDetection

 class ReplayDetection
extends java.lang.Object

Detects whether a message has already been processed, or not. Detection is done using timestamps and hash tables.

This class is thread-safe (but parallel execution won't increase performance).

Author:
Karl-Peter Fuchs

Constructor Summary
protected ReplayDetection()
          Loads values from property file and initializes hash tables.
 
Method Summary
protected  boolean isReplay(BasicMessage basicMessage)
          Detects whether a message has already been processed, or not.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReplayDetection

protected ReplayDetection()
Loads values from property file and initializes hash tables.

Method Detail

isReplay

protected boolean isReplay(BasicMessage basicMessage)
Detects whether a message has already been processed, or not. Detection is done using timestamps and hash tables.

Parameters:
basicMessage - The message to be checked.
Returns:
Indicates whether the bypasses message is a replay or not.