org.ehcache.loaderwriter.writebehind.operations
Interface KeyBasedOperation<K>

All Known Subinterfaces:
SingleOperation<K,V>
All Known Implementing Classes:
DeleteOperation, WriteOperation

public interface KeyBasedOperation<K>

Interface to implement operations that are performed with write-behind and based on a key


Method Summary
 long getCreationTime()
          Retrieves the moment when the operation was created.
 K getKey()
          Retrieves the element key for this operation.
 

Method Detail

getKey

K getKey()
Retrieves the element key for this operation.

Returns:
the key of the element that is concerned by the operation.

getCreationTime

long getCreationTime()
Retrieves the moment when the operation was created.

Returns:
the creation time in milliseconds