public class JMSTask extends InboundTask implements org.wso2.carbon.ntask.core.impl.LocalTaskActionListener
interval, TASK_THRESHOLD_INTERVAL
Constructor and Description |
---|
JMSTask(JMSPollingConsumer jmsPollingConsumer,
long interval) |
Modifier and Type | Method and Description |
---|---|
void |
destroy() |
Properties |
getInboundProperties() |
void |
init(org.apache.synapse.core.SynapseEnvironment synapseEnvironment) |
void |
notifyLocalTaskDeletion(String taskName) |
protected void |
taskExecute() |
execute
public JMSTask(JMSPollingConsumer jmsPollingConsumer, long interval)
protected void taskExecute()
taskExecute
in class InboundTask
public Properties getInboundProperties()
getInboundProperties
in interface PinnedPollingTask
getInboundProperties
in class InboundTask
public void init(org.apache.synapse.core.SynapseEnvironment synapseEnvironment)
init
in interface org.apache.synapse.ManagedLifecycle
public void destroy()
destroy
in interface org.apache.synapse.ManagedLifecycle
public void notifyLocalTaskDeletion(String taskName)
Destroys the JMS task upon deletion of the local task.
notifyLocalTaskDeletion
in interface org.wso2.carbon.ntask.core.impl.LocalTaskActionListener
taskName
- the name of the task that was deletedCopyright © 2019 WSO2. All rights reserved.