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

com.addc.commons.queue.EnqueueProcessor Maven / Gradle / Ivy

Go to download

The addc-queues library supplies support for internal persistent queues using an optional DERBY database for storage.

The newest version!
package com.addc.commons.queue;

/**
 * The EnqueueProcessor defines the contract for pre-processing elements added
 * to a {@link BoundedNotifyingQueue}
 *
 */
public interface EnqueueProcessor {

    /**
     * Process the element prior to injection into the queue
     * 
     * @param element
     *            The element of type E to process
     * @return the resulting pre processed element
     */
    E preProcess(E element);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy