org.terracotta.modules.ehcache.async.ItemsFilter Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ehcache Show documentation
Show all versions of ehcache Show documentation
Ehcache is an open source, standards-based cache used to boost performance,
offload the database and simplify scalability. Ehcache is robust, proven and full-featured and
this has made it the most widely-used Java-based cache.
/*
* All content copyright Terracotta, Inc., unless otherwise indicated. All rights reserved.
*/
package org.terracotta.modules.ehcache.async;
import java.io.Serializable;
import java.util.List;
/**
* 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.
*/
public interface ItemsFilter {
/**
* 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.
*
* @param items list of items to be executed
*/
public void filter(List items);
}