public class ObjectStreamFanoutExchangeConsumer<T> extends FanoutExchangeConsumer
| Constructor and Description |
|---|
ObjectStreamFanoutExchangeConsumer(org.hobbit.core.rabbit.RabbitQueueFactory queueFactory,
String exchangeName)
Initializes consuming of messages coming through specified exchange.
|
| Modifier and Type | Method and Description |
|---|---|
void |
handle(byte[] body)
Abstract method which is called when a message is received.
|
void |
handle(T object)
Abstract method which is called when a message is received.
|
closepublic ObjectStreamFanoutExchangeConsumer(org.hobbit.core.rabbit.RabbitQueueFactory queueFactory,
String exchangeName)
throws IOException
queueFactory - factory to create queues withexchangeName - name of the exchangeIOExceptionpublic final void handle(byte[] body)
FanoutExchangeConsumerhandle in class FanoutExchangeConsumerbody - message body as a byte arraypublic void handle(T object)
object - message body as an objectCopyright © 2019–2020. All rights reserved.