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

Alachisoft.NCache.Common.yield.ResultHandler Maven / Gradle / Ivy

There is a newer version: 5.3.3
Show newest version
/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Alachisoft.NCache.Common.yield;

/**
 * Defines objects that handle results from a Collector<>, with a function called immediately as each value is gathered.
 */
public interface ResultHandler {

    /**
     * This method is called by collectors whenever a result is collected.
     *
     * @param value The collected result
     * @throws CollectionAbortedException The client code requests that the collection is aborted
     */
    void handleResult(T value) throws CollectionAbortedException;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy