Class JMSTask
java.lang.Object
org.wso2.carbon.inbound.endpoint.common.InboundTask
org.wso2.carbon.inbound.endpoint.protocol.jms.JMSTask
- All Implemented Interfaces:
org.apache.synapse.ManagedLifecycle,org.apache.synapse.task.Task,PinnedPollingTask,org.wso2.carbon.ntask.core.impl.LocalTaskActionListener
public class JMSTask
extends InboundTask
implements org.wso2.carbon.ntask.core.impl.LocalTaskActionListener
JMSTask class is used to schedule the inbound execution when the coordination
is required
-
Field Summary
Fields inherited from class org.wso2.carbon.inbound.endpoint.common.InboundTask
interval, TASK_THRESHOLD_INTERVAL -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddestroy()voidinit(org.apache.synapse.core.SynapseEnvironment synapseEnvironment) voidnotifyLocalTaskDeletion(String taskName) protected voidMethods inherited from class org.wso2.carbon.inbound.endpoint.common.InboundTask
execute
-
Constructor Details
-
JMSTask
-
-
Method Details
-
taskExecute
protected void taskExecute()- Specified by:
taskExecutein classInboundTask
-
getInboundProperties
- Specified by:
getInboundPropertiesin interfacePinnedPollingTask- Specified by:
getInboundPropertiesin classInboundTask
-
init
public void init(org.apache.synapse.core.SynapseEnvironment synapseEnvironment) - Specified by:
initin interfaceorg.apache.synapse.ManagedLifecycle
-
destroy
public void destroy()- Specified by:
destroyin interfaceorg.apache.synapse.ManagedLifecycle
-
notifyLocalTaskDeletion
Destroys the JMS task upon deletion of the local task.
- Specified by:
notifyLocalTaskDeletionin interfaceorg.wso2.carbon.ntask.core.impl.LocalTaskActionListener- Parameters:
taskName- the name of the task that was deleted
-