Alachisoft.NCache.Common.yield.ResultHandler Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of nc-common Show documentation
Show all versions of nc-common Show documentation
Internal package of Alachisoft.
/*
* 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;
}