Class SalesforceStreamData
- java.lang.Object
-
- org.wso2.carbon.inbound.endpoint.protocol.generic.GenericPollingConsumer
-
- org.wso2.carbon.inbound.salesforce.poll.SalesforceStreamData
-
- All Implemented Interfaces:
ConnectionFailureListener
public class SalesforceStreamData extends org.wso2.carbon.inbound.endpoint.protocol.generic.GenericPollingConsumer implements ConnectionFailureListener
Salesforce streaming api Inbound.
-
-
Constructor Summary
Constructors Constructor Description SalesforceStreamData(Properties salesforceProperties, String name, org.apache.synapse.core.SynapseEnvironment synapseEnvironment, long scanInterval, String injectingSeq, String onErrorSeq, boolean coordination, boolean sequential)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddestroy()stop the connector when redeploy or shutdown the server.voidonConnectionFailure()Handles connection failure notifications from the EmpConnector.Objectpoll()Each polling time this method callsvoidresume()
-
-
-
Constructor Detail
-
SalesforceStreamData
public SalesforceStreamData(Properties salesforceProperties, String name, org.apache.synapse.core.SynapseEnvironment synapseEnvironment, long scanInterval, String injectingSeq, String onErrorSeq, boolean coordination, boolean sequential)
-
-
Method Detail
-
onConnectionFailure
public void onConnectionFailure()
Handles connection failure notifications from the EmpConnector. Sets the connectionFailed flag to true when a failure is detected.- Specified by:
onConnectionFailurein interfaceConnectionFailureListener
-
poll
public Object poll()
Each polling time this method calls- Specified by:
pollin classorg.wso2.carbon.inbound.endpoint.protocol.generic.GenericPollingConsumer- Returns:
-
destroy
public void destroy()
stop the connector when redeploy or shutdown the server.- Overrides:
destroyin classorg.wso2.carbon.inbound.endpoint.protocol.generic.GenericPollingConsumer
-
resume
public void resume()
- Overrides:
resumein classorg.wso2.carbon.inbound.endpoint.protocol.generic.GenericPollingConsumer
-
-