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

com.oracle.coherence.common.base.Collector Maven / Gradle / Ivy

There is a newer version: 24.03
Show newest version
/*
 * Copyright (c) 2000, 2020, Oracle and/or its affiliates.
 *
 * Licensed under the Universal Permissive License v 1.0 as shown at
 * http://oss.oracle.com/licenses/upl.
 */
package com.oracle.coherence.common.base;


/**
 * A Collector is mechanism for receiving items.
 *
 * @param  the collected type
 *
 * @author mf  2010.10.06
 */
public interface Collector
    {
    /**
     * Notify the collector of a item of interest.
     *
     * @param value  the item to collect
     */
    public void add(V value);

    /**
     * Request processing of any added values.
     * 

* This method should be called after a call or series of calls to {@link #add}. */ public default void flush() {}; }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy