public static class BusPublisher.CambriaPublisherWrapper extends Object implements BusPublisher
BusPublisher.CambriaPublisherWrapper, BusPublisher.DmaapPublisherWrapper
Modifier and Type | Field and Description |
---|---|
protected com.att.nsa.cambria.client.CambriaBatchingPublisher |
publisher
The actual Cambria publisher
|
Constructor and Description |
---|
CambriaPublisherWrapper(List<String> servers,
String topic,
String apiKey,
String apiSecret) |
Modifier and Type | Method and Description |
---|---|
void |
close()
closes the publisher
|
boolean |
send(String partitionId,
String message)
sends a message
|
String |
toString() |
protected volatile com.att.nsa.cambria.client.CambriaBatchingPublisher publisher
public CambriaPublisherWrapper(List<String> servers, String topic, String apiKey, String apiSecret) throws IllegalArgumentException
IllegalArgumentException
public boolean send(String partitionId, String message) throws IllegalArgumentException
send
in interface BusPublisher
message
- the messageIllegalArgumentException
- if no message providedpublic void close()
close
in interface BusPublisher
Copyright © 2018. All rights reserved.