Class SolaceJcsmpAbstractConsumer

    • Constructor Detail

      • SolaceJcsmpAbstractConsumer

        public SolaceJcsmpAbstractConsumer()
    • Method Detail

      • onException

        public void onException​(com.solacesystems.jcsmp.JCSMPException exception)
        Specified by:
        onException in interface com.solacesystems.jcsmp.XMLMessageListener
      • onReceive

        public void onReceive​(com.solacesystems.jcsmp.BytesXMLMessage message)
        Specified by:
        onReceive in interface com.solacesystems.jcsmp.XMLMessageListener
      • createConsumerFlowProperties

        protected com.solacesystems.jcsmp.ConsumerFlowProperties createConsumerFlowProperties​(com.solacesystems.jcsmp.Queue queue)
      • createEndpointProperties

        protected com.solacesystems.jcsmp.EndpointProperties createEndpointProperties()
      • getMessageTranslator

        public SolaceJcsmpMessageTranslator getMessageTranslator()
        The message translator is responsible for translating the Solace JCSMP message object into an AdaptrisMessage and the reverse. The translator will typically handle the payload and the headers/metadata.
      • setMessageTranslator

        public void setMessageTranslator​(SolaceJcsmpMessageTranslator messageTranslator)
        The message translator is responsible for translating the Solace JCSMP message object into an AdaptrisMessage and the reverse. The translator will typically handle the payload and the headers/metadata.
        Parameters:
        messageTranslator -
      • getEndpointPermissions

        public java.lang.String getEndpointPermissions()

        "CONSUME" / "DELETE" / "READ_ONLY" / "NONE" / "MODIFY_TOPIC""

        This must match your end-point permissions on the Solace queue/topic.

      • setEndpointPermissions

        public void setEndpointPermissions​(java.lang.String endpointPermissions)

        "CONSUME" / "DELETE" / "READ_ONLY" / "NONE" / "MODIFY_TOPIC""

        This must match your end-point permissions on the Solace queue/topic.

        Parameters:
        endpointPermissions -
      • getEndpointAccessType

        public java.lang.String getEndpointAccessType()

        "EXCLUSIVE" / "NONEXCLUSIVE"

        This must match your end-point configuration on the Solace queue/topic.

      • setEndpointAccessType

        public void setEndpointAccessType​(java.lang.String endpointAccessType)

        "EXCLUSIVE" / "NONEXCLUSIVE"

        This must match your end-point configuration on the Solace queue/topic.

        Parameters:
        endpointAccessType -
      • getAcknowledgeMode

        public java.lang.String getAcknowledgeMode()

        "CLIENT" / "AUTO"

        Client acknowledge mode means Interlok will handle the Acknowledgements after the workflow has finished or the producer gives us a successful async callback.

      • setAcknowledgeMode

        public void setAcknowledgeMode​(java.lang.String acknowledgeMode)

        "CLIENT" / "AUTO"

        Client acknowledge mode means Interlok will handle the Acknowledgements after the workflow has finished or the producer gives us a successful async callback.

        Parameters:
        acknowledgeMode -
      • getTransacted

        public java.lang.Boolean getTransacted()
        If set to 'true' will commit or rollback the consumed message upon success or failure during processing.
      • setTransacted

        public void setTransacted​(java.lang.Boolean transacted)
        If set to 'true' will commit or rollback the consumed message upon success or failure during processing.