org.apache.activemq.artemis.jms.client

## Class JMSMessageListenerWrapper

- java.lang.Object
- - org.apache.activemq.artemis.jms.client.JMSMessageListenerWrapper

- All Implemented Interfaces:
    MessageHandler

      public class JMSMessageListenerWrapper
      extends Object
      implements MessageHandler

- - ### Constructor Summary

    Constructors
    Modifier | Constructor and Description
    --- | ---
    `protected` | `JMSMessageListenerWrapper(ConnectionFactoryOptions options, ActiveMQConnection connection, ActiveMQSession session, ClientConsumer consumer, javax.jms.MessageListener listener, int ackMode)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `onMessage(ClientMessage message)` In this method we apply the JMS acknowledgement and redelivery semantics as per JMS spec

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### JMSMessageListenerWrapper

          protected JMSMessageListenerWrapper(ConnectionFactoryOptions options,
                                              ActiveMQConnection connection,
                                              ActiveMQSession session,
                                              ClientConsumer consumer,
                                              javax.jms.MessageListener listener,
                                              int ackMode)

  - ### Method Detail

    - #### onMessage

          public void onMessage(ClientMessage message)

      In this method we apply the JMS acknowledgement and redelivery semantics as per JMS spec
      Specified by:
        `onMessage` in interface `MessageHandler`
      Parameters:
        `message` - a message

Copyright © 2017. All rights reserved.