| Constructor and Description |
|---|
AbstractProcessor() |
| Modifier and Type | Method and Description |
|---|---|
void |
cleanup(String tenantId,
List<T> items)
This method is called once all of the items in the list of been
processed to generate new information.
|
long |
getDeliveryDelay(List<R> results)
This method determines the delivery delay (in milliseconds)
associated with the supplied list of results.
|
long |
getRetryDelay(List<T> items)
This method determines the retry delay (in milliseconds)
associated with the supplied list of items.
|
void |
initialise(String tenantId,
List<T> items)
This method enables the processor to perform some initialisation
tasks before processing the items individually to generate new
information.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisMultiple, processMultiple, processSinglepublic void initialise(String tenantId, List<T> items)
Processorinitialise in interface Processor<T,R>tenantId - The optional tenant idpublic long getDeliveryDelay(List<R> results)
ProcessorgetDeliveryDelay in interface Processor<T,R>results - The resultspublic long getRetryDelay(List<T> items)
ProcessorgetRetryDelay in interface Processor<T,R>items - The itemspublic void cleanup(String tenantId, List<T> items)
ProcessorCopyright © 2015–2016 Red Hat, Inc.. All rights reserved.