public interface ChannelMessageConsumer
Modifier and Type | Method and Description |
---|---|
void |
close()
Closes the channel and does the resource cleanup
|
String |
getConsumerDescription() |
void |
onMessageReceived(String routingKey,
byte[] body,
com.rabbitmq.client.AMQP.BasicProperties properties,
long receivedAt)
Consumes the provided message payload
|
void |
open(MessageConsumer messageConsumer)
Opens the channel message consumer and prepares the required instances
|
void open(MessageConsumer messageConsumer)
messageConsumer
- the parsed/prepared messagesvoid onMessageReceived(String routingKey, byte[] body, com.rabbitmq.client.AMQP.BasicProperties properties, long receivedAt)
routingKey
- - the source routing key of the payloadbody
- - the message payloadproperties
- - the BasicProperties associated to the messagereceivedAt
- - the time when message was received (in milliseconds since EPOCH UTC)String getConsumerDescription()
void close() throws IOException
IOException
Copyright © 2016–2025. All rights reserved.