public abstract class AbstractPublisherJMS<T> extends Object
| Constructor and Description |
|---|
AbstractPublisherJMS() |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
protected void |
doPublish(String tenantId,
List<T> items,
int retryCount)
This method publishes the supplied data.
|
protected abstract String |
getDestinationURI() |
void |
init() |
void |
publish(String tenantId,
List<T> items,
int retryCount)
This method publishes a list of items.
|
protected abstract String getDestinationURI()
@PostConstruct public void init()
@PreDestroy public void close()
public void publish(String tenantId, List<T> items, int retryCount) throws Exception
tenantId - The optional tenant iditems - The list of itemsretryCount - The retry count remainingException - Failed to publishCopyright © 2015–2016 Red Hat, Inc.. All rights reserved.