org.mule.cache.keygenerator
Interface KeyGenerator

All Known Implementing Classes:
ExpressionKeyGenerator, MD5KeyGenerator

public interface KeyGenerator

Defines a way to generate cache keys for MuleEvent instances.


Method Summary
 Serializable generateKey(MuleEvent event)
          Generates a key for an event.
 

Method Detail

generateKey

Serializable generateKey(MuleEvent event)
                         throws NotSerializableException
Generates a key for an event.

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

Parameters:
event - the event to generate the key for
Returns:
the generated key
Throws:
NotSerializableException - if the generated key is not Serializable


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