public abstract class RetryCapableMDB<S> extends Object implements javax.jms.MessageListener
| Constructor and Description |
|---|
RetryCapableMDB() |
| Modifier and Type | Method and Description |
|---|---|
AbstractPublisherJMS<S> |
getRetryPublisher() |
com.fasterxml.jackson.core.type.TypeReference<List<S>> |
getTypeReference() |
void |
onMessage(javax.jms.Message message) |
protected abstract void |
process(String tenantId,
List<S> items,
int retryCount)
This method processes the received list of items.
|
void |
setRetryPublisher(AbstractPublisherJMS<S> retryPublisher) |
void |
setTypeReference(com.fasterxml.jackson.core.type.TypeReference<List<S>> typeReference) |
public AbstractPublisherJMS<S> getRetryPublisher()
public void setRetryPublisher(AbstractPublisherJMS<S> retryPublisher)
retryPublisher - the retryPublisher to setpublic com.fasterxml.jackson.core.type.TypeReference<List<S>> getTypeReference()
public void setTypeReference(com.fasterxml.jackson.core.type.TypeReference<List<S>> typeReference)
typeReference - the typeReference to setpublic void onMessage(javax.jms.Message message)
onMessage in interface javax.jms.MessageListenerprotected abstract void process(String tenantId, List<S> items, int retryCount) throws Exception
tenantId - The optional tenant iditems - The itemsretryCount - The remaining retry countFailed - to process itemsExceptionCopyright © 2015 Red Hat, Inc.. All rights reserved.