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

com.addc.commons.queue.PayloadDispatcher 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 PayloadConsumer defines the contract for entities that receive Payload objects
 * from the PersistingQueueReader
 *
 */
public interface PayloadDispatcher {

    /**
     * Dispatch an item received from the PersistingQueueReader
     * @param item The item to dispatch
     * @throws DispatcherException If it fails. If the exception is not recoverable this will cause the
     * PersistingQueueReader to abort. 
     */
    void dispatch(T item) throws DispatcherException;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy