org.terracotta.modules.ehcache.async
Interface ItemsFilter<E extends Serializable>

All Known Implementing Classes:
OperationsFilterWrapper

public interface ItemsFilter<E extends Serializable>

An interface for implementing a filter for quarantined items before they're actually processed. By filtering the outstanding items it's for example possible to remove scheduled work before it's actually executed.


Method Summary
 void filter(List<E> items)
          Called before executing an assembled list of work items.
 

Method Detail

filter

void filter(List<E> items)
Called before executing an assembled list of work items.

The attached list can be freely mutated and will be subsequently used as the list of items to be executed.

Parameters:
items - list of items to be executed


Copyright © 2003-2013 Terracotta, Inc.. All Rights Reserved.