All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.terracotta.modules.ehcache.async.ItemsFilter Maven / Gradle / Ivy

Go to download

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.

There is a newer version: 2.10.9.2
Show newest version
/*
 * 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); }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy