Class KAFKAProcessor
- java.lang.Object
-
- org.wso2.carbon.inbound.endpoint.common.InboundRequestProcessorImpl
-
- org.wso2.carbon.inbound.endpoint.protocol.kafka.KAFKAProcessor
-
- All Implemented Interfaces:
org.apache.synapse.inbound.InboundRequestProcessor,org.apache.synapse.inbound.InboundTaskProcessor,org.apache.synapse.task.TaskStartupObserver
public class KAFKAProcessor extends InboundRequestProcessorImpl implements org.apache.synapse.task.TaskStartupObserver, org.apache.synapse.inbound.InboundTaskProcessor
-
-
Field Summary
-
Fields inherited from class org.wso2.carbon.inbound.endpoint.common.InboundRequestProcessorImpl
COMMON_ENDPOINT_POSTFIX, coordination, interval, name, startInPausedMode, synapseEnvironment
-
-
Constructor Summary
Constructors Constructor Description KAFKAProcessor(org.apache.synapse.inbound.InboundProcessorParams params)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddestroy()Stop the inbound polling processor This will be called when inbound is undeployed/redeployed or when server stopvoiddestroy(boolean removeTask)Remove inbound endpoints.StringgetName()voidinit()This will be called at the time of synapse artifact deployment.voidsetName(String name)voidstart()Register/start the schedule servicevoidupdate()-
Methods inherited from class org.wso2.carbon.inbound.endpoint.common.InboundRequestProcessorImpl
activate, deactivate, isDeactivated, isPinnedServer, isPinnedServerEnabled, start
-
-
-
-
Method Detail
-
init
public void init()
This will be called at the time of synapse artifact deployment.- Specified by:
initin interfaceorg.apache.synapse.inbound.InboundRequestProcessor
-
start
public void start()
Register/start the schedule service
-
update
public void update()
- Specified by:
updatein interfaceorg.apache.synapse.task.TaskStartupObserver
-
getName
public String getName()
-
setName
public void setName(String name)
-
destroy
public void destroy()
Description copied from class:InboundRequestProcessorImplStop the inbound polling processor This will be called when inbound is undeployed/redeployed or when server stop- Specified by:
destroyin interfaceorg.apache.synapse.inbound.InboundRequestProcessor- Overrides:
destroyin classInboundRequestProcessorImpl
-
destroy
public void destroy(boolean removeTask)
Remove inbound endpoints.- Specified by:
destroyin interfaceorg.apache.synapse.inbound.InboundTaskProcessor- Parameters:
removeTask- Whether to remove scheduled task from the registry or not.
-
-