Class KAFKAPollingConsumer
java.lang.Object
org.wso2.carbon.inbound.endpoint.protocol.kafka.KAFKAPollingConsumer
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionKAFKAPollingConsumer(Properties kafkaProperties, long interval, String name) Initialize the kafka properties and the polling interval -
Method Summary
Modifier and TypeMethodDescriptionvoidexecute()poll()Create the connection with the zookeeper and inject the messages to the sequencevoidregisterHandler(InjectHandler processingHandler) Register a handler to implement injection of the retrieved messagevoidStart the listener to listen when new messages come to the esb,the listener can be high level or low level.
-
Field Details
-
messageListener
-
-
Constructor Details
-
KAFKAPollingConsumer
public KAFKAPollingConsumer(Properties kafkaProperties, long interval, String name) throws Exception Initialize the kafka properties and the polling interval- Throws:
Exception
-
-
Method Details
-
startsMessageListener
Start the listener to listen when new messages come to the esb,the listener can be high level or low level.- Throws:
Exception
-
execute
public void execute() -
registerHandler
Register a handler to implement injection of the retrieved message- Parameters:
processingHandler-
-
poll
Create the connection with the zookeeper and inject the messages to the sequence -
getInboundProperties
-