public class KafkaHandler extends BaseRouterHandler
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
BOOTSTRAPSERVERS |
static java.lang.String |
TOPIC |
BIDICONFIG, PASSWORD, USERNAME| Constructor and Description |
|---|
KafkaHandler() |
KafkaHandler(MaxEndPointInfo endPointInfo) |
| Modifier and Type | Method and Description |
|---|---|
java.util.List<RouterPropsInfo> |
getProperties() |
java.lang.String |
getServersString()
looks for PROVIDER_URL from the Map and returns the Provider Url from the map.
|
java.lang.String |
getTopic()
looks for CON_FACTORY_JNDI_NAME from the Map and returns the Queue Connection Factory JNDI Name from the map.
|
java.lang.String |
getUsername()
The username for accessing the destination.
|
byte[] |
invoke(java.util.Map<java.lang.String,?> metaData,
byte[] data)
Sends / Writes data to a given Queue.
|
public static final java.lang.String BOOTSTRAPSERVERS
public static final java.lang.String TOPIC
public KafkaHandler(MaxEndPointInfo endPointInfo)
public KafkaHandler()
public byte[] invoke(java.util.Map<java.lang.String,?> metaData,
byte[] data)
throws MXException
invoke in interface RouterHandlerinvoke in class BaseRouterHandlerdestinationName - Name of the External SysteminterfaceName - interfaceName of this transaciondata - the xml transaction in byte arrayMXException - if there's a problem in writing data to queue.RouterHandler.invoke(java.util.Map, byte[])public java.util.List<RouterPropsInfo> getProperties()
public java.lang.String getTopic()
public java.lang.String getServersString()
public java.lang.String getUsername()