public interface Publisher<T>
| Modifier and Type | Method and Description |
|---|---|
int |
getInitialRetryCount()
The initial retry count for messages sent by this publisher.
|
void |
publish(String tenantId,
List<T> items)
This method publishes the list of items.
|
void |
publish(String tenantId,
List<T> items,
int retryCount,
long delay)
This method publishes the list of items.
|
void |
retry(String tenantId,
List<T> items,
String subscriber,
int retryCount,
long delay)
This method publishes the list of items.
|
void |
setMetricHandler(PublisherMetricHandler<T> handler)
This method sets the metric handler for the publisher.
|
int getInitialRetryCount()
void publish(String tenantId, List<T> items) throws Exception
tenantId - The tenantitems - The list of itemsException - Failed to publishvoid publish(String tenantId, List<T> items, int retryCount, long delay) throws Exception
tenantId - The tenantitems - The list of itemsretryCount - The retry countdelay - The delayException - Failed to publishvoid retry(String tenantId, List<T> items, String subscriber, int retryCount, long delay) throws Exception
tenantId - The tenantitems - The list of itemssubscriber - The optional name of the subscriber requesting the retryretryCount - The retry countdelay - The delayException - Failed to publishvoid setMetricHandler(PublisherMetricHandler<T> handler)
handler - The handlerCopyright © 2015–2016 Red Hat, Inc.. All rights reserved.