ehcache

net.sf.ehcache.writer.writebehind.operations
Interface KeyBasedOperation

All Known Subinterfaces:
SingleOperation
All Known Implementing Classes:
DeleteOperation, WriteOperation

public interface KeyBasedOperation

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

Version:
$Id: KeyBasedOperation.java 5594 2012-05-07 16:04:31Z cdennis $
Author:
Geert Bevin

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

Method Detail

getKey

Object 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

ehcache

Copyright 2001-2017, Terracotta, Inc.