ehcache

net.sf.ehcache.writer.writebehind
Class CoalesceKeysFilter

java.lang.Object
  extended by net.sf.ehcache.writer.writebehind.CoalesceKeysFilter
All Implemented Interfaces:
OperationsFilter<KeyBasedOperation>

public class CoalesceKeysFilter
extends Object
implements OperationsFilter<KeyBasedOperation>

Filters the operations by only retaining the latest operations for a given key.

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

Constructor Summary
CoalesceKeysFilter()
           
 
Method Summary
 void filter(List operations, OperationConverter<KeyBasedOperation> converter)
          Filter the operations of a write behind queue.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CoalesceKeysFilter

public CoalesceKeysFilter()
Method Detail

filter

public void filter(List operations,
                   OperationConverter<KeyBasedOperation> converter)
Filter the operations of a write behind queue.

Specified by:
filter in interface OperationsFilter<KeyBasedOperation>
Parameters:
operations - the operations to filter
converter - the converter to use for each operation

ehcache

Copyright 2001-2014, Terracotta, Inc.