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 -
Method Summary
Modifier and TypeMethodDescriptionvoiddestroy()Stop the inbound polling processor This will be called when inbound is undeployed/redeployed or when server stopvoiddestroy(boolean removeTask) Remove inbound endpoints.getName()voidinit()This will be called at the time of synapse artifact deployment.voidvoidstart()Register/start the schedule servicevoidupdate()Methods inherited from class org.wso2.carbon.inbound.endpoint.common.InboundRequestProcessorImpl
activate, deactivate, isDeactivated, isPinnedServer, isPinnedServerEnabled, pause, start
-
Constructor Details
-
KAFKAProcessor
public KAFKAProcessor(org.apache.synapse.inbound.InboundProcessorParams params)
-
-
Method Details
-
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
-
setName
-
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.
-