Class SolaceJcsmpAbstractConsumer

All Implemented Interfaces:
AdaptrisComponent, AdaptrisMessageConsumer, AdaptrisMessageWorker, ComponentLifecycle, ComponentLifecycleExtension, SolaceJcsmpReceiverStarter, MessageEventGenerator, StateManagedComponent, com.solacesystems.jcsmp.XMLMessageListener
Direct Known Subclasses:
SolaceJcsmpQueueConsumer, SolaceJcsmpTopicConsumer

public abstract class SolaceJcsmpAbstractConsumer extends AdaptrisMessageConsumerImp implements SolaceJcsmpReceiverStarter
  • Constructor Details

    • SolaceJcsmpAbstractConsumer

      public SolaceJcsmpAbstractConsumer()
  • Method Details

    • 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
    • init

      public void init() throws CoreException
      Specified by:
      init in interface ComponentLifecycle
      Throws:
      CoreException
    • start

      public void start() throws CoreException
      Specified by:
      start in interface ComponentLifecycle
      Throws:
      CoreException
    • stop

      public void stop()
      Specified by:
      stop in interface ComponentLifecycle
    • createConsumerFlowProperties

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

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

      public abstract void startReceive() throws Exception
      Specified by:
      startReceive in interface SolaceJcsmpReceiverStarter
      Throws:
      Exception
    • 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 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(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 String getEndpointAccessType()

      "EXCLUSIVE" / "NONEXCLUSIVE"

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

    • setEndpointAccessType

      public void setEndpointAccessType(String endpointAccessType)

      "EXCLUSIVE" / "NONEXCLUSIVE"

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

      Parameters:
      endpointAccessType -
    • getAcknowledgeMode

      public 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(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 Boolean getTransacted()
      If set to 'true' will commit or rollback the consumed message upon success or failure during processing.
    • setTransacted

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