S - Source event typeT - Target event typepublic abstract class RetryCapableMDB<S,T> extends Object implements javax.jms.MessageListener
| Constructor and Description |
|---|
RetryCapableMDB(String subscriberName)
This constructor initialises the retry capable MDB with the subscriber name.
|
| Modifier and Type | Method and Description |
|---|---|
Processor<S,T> |
getProcessor() |
Publisher<T> |
getPublisher() |
AbstractPublisherJMS<S> |
getRetryPublisher() |
com.fasterxml.jackson.core.type.TypeReference<List<S>> |
getTypeReference() |
void |
onMessage(javax.jms.Message message) |
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) |
void |
setRetryPublisher(AbstractPublisherJMS<S> retryPublisher) |
void |
setTypeReference(com.fasterxml.jackson.core.type.TypeReference<List<S>> typeReference) |
public RetryCapableMDB(String subscriberName)
subscriberName - The subscriber namepublic void setProcessor(Processor<S,T> processor)
processor - the processor to setpublic void setPublisher(Publisher<T> publisher)
publisher - the publisher to setpublic 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.MessageListenerCopyright © 2015–2016 Red Hat, Inc.. All rights reserved.