public abstract class ProcessorMDB<S,T> extends RetryCapableMDB<S>
| Constructor and Description |
|---|
ProcessorMDB() |
| Modifier and Type | Method and Description |
|---|---|
Processor<S,T> |
getProcessor() |
Publisher<T> |
getPublisher() |
protected void |
process(String tenantId,
List<S> items,
int retryCount)
This method processes the received list of items.
|
void |
setProcessor(Processor<S,T> processor) |
void |
setPublisher(Publisher<T> publisher) |
getRetryPublisher, getTypeReference, onMessage, setRetryPublisher, setTypeReferencepublic void setProcessor(Processor<S,T> processor)
processor - the processor to setpublic void setPublisher(Publisher<T> publisher)
publisher - the publisher to setprotected void process(String tenantId, List<S> items, int retryCount) throws Exception
process in class RetryCapableMDB<S>tenantId - The optional tenant iditems - The itemsretryCount - The remaining retry countExceptionCopyright © 2015 Red Hat, Inc.. All rights reserved.