org.mule.keygenerator
Class MD5MuleEventKeyGenerator

java.lang.Object
  extended by org.mule.keygenerator.MD5MuleEventKeyGenerator
All Implemented Interfaces:
MuleEventKeyGenerator

public class MD5MuleEventKeyGenerator
extends Object
implements MuleEventKeyGenerator

Implements MuleEventKeyGenerator applying an MD5 digest to the event's message payload.


Field Summary
protected  Log logger
           
 
Constructor Summary
MD5MuleEventKeyGenerator()
           
 
Method Summary
 Serializable generateKey(MuleEvent event)
          Generates a key for an event.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

protected Log logger
Constructor Detail

MD5MuleEventKeyGenerator

public MD5MuleEventKeyGenerator()
Method Detail

generateKey

public Serializable generateKey(MuleEvent event)
                         throws NotSerializableException
Description copied from interface: MuleEventKeyGenerator
Generates a key for an event.

The generation algorithm should return the same key value for all the events that are considered equals.

Specified by:
generateKey in interface MuleEventKeyGenerator
Parameters:
event - the event to generate the key for
Returns:
the generated key
Throws:
NotSerializableException - if the generated key is not Serializable


Copyright © 2003-2012 MuleSoft, Inc.. All Rights Reserved.