com.addc.commons.queue.PayloadDispatcher Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of addc-queues Show documentation
Show all versions of addc-queues Show documentation
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