Spring AMQP

org.springframework.amqp.rabbit.core
Interface ChannelAwareMessageListener

All Known Implementing Classes:
MessageListenerAdapter

public interface ChannelAwareMessageListener

A message listener that is aware of the Channel on which the message was received.

Author:
Mark Pollack

Method Summary
 void onMessage(Message message, com.rabbitmq.client.Channel channel)
          Callback for processing a received Rabbit message.
 

Method Detail

onMessage

void onMessage(Message message,
               com.rabbitmq.client.Channel channel)
               throws Exception
Callback for processing a received Rabbit message.

Implementors are supposed to process the given Message, typically sending reply messages through the given Session.

Parameters:
message - the received AMQP message (never null)
channel - the underlying Rabbit Channel (never null)
Throws:
Exception

Spring AMQP

Copyright © 2011. All Rights Reserved.