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

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

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Alachisoft.NCache.Common.yield;

/**
 * Defines a class that collects values of type T and submits each value to a ResultHandler<>
 * object immediately on collection.
 */
public interface Collector {

    /**
     * Perform the collection operation.
     *
     * @param handler The processor object to return results to.
     * @throws CollectionAbortedException The collection operation was aborted part way through.
     */
    void collect(ResultHandler handler) throws CollectionAbortedException;
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy