Class SalesforceStreamData

    • Field Summary

      • Fields inherited from class org.wso2.carbon.inbound.endpoint.protocol.generic.GenericPollingConsumer

        coordination, name, onErrorSeq, properties, scanInterval, sequential, synapseEnvironment
    • 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)  
    • 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:
        onConnectionFailure in interface ConnectionFailureListener
      • poll

        public Object poll()
        Each polling time this method calls
        Specified by:
        poll in class org.wso2.carbon.inbound.endpoint.protocol.generic.GenericPollingConsumer
        Returns:
      • destroy

        public void destroy()
        stop the connector when redeploy or shutdown the server.
        Overrides:
        destroy in class org.wso2.carbon.inbound.endpoint.protocol.generic.GenericPollingConsumer
      • resume

        public void resume()
        Overrides:
        resume in class org.wso2.carbon.inbound.endpoint.protocol.generic.GenericPollingConsumer