public abstract class ChannelInitializer extends java.lang.Object implements io.micronaut.context.event.BeanCreatedEventListener<ChannelPool>
| Constructor and Description |
|---|
ChannelInitializer() |
| Modifier and Type | Method and Description |
|---|---|
void |
initialize(com.rabbitmq.client.Channel channel)
Deprecated.
Override
initialize(Channel, String) instead |
void |
initialize(com.rabbitmq.client.Channel channel,
java.lang.String name)
Do any work with a channel.
|
ChannelPool |
onCreated(io.micronaut.context.event.BeanCreatedEvent<ChannelPool> event) |
@Deprecated
public void initialize(com.rabbitmq.client.Channel channel)
throws java.io.IOException
initialize(Channel, String) insteadchannel - The channel to usejava.io.IOException - If any error occurspublic void initialize(com.rabbitmq.client.Channel channel,
java.lang.String name)
throws java.io.IOException
channel - The channel to usename - The name of the channel pool, like configured under `rabbitmq.servers`java.io.IOException - If any error occurspublic ChannelPool onCreated(io.micronaut.context.event.BeanCreatedEvent<ChannelPool> event)
onCreated in interface io.micronaut.context.event.BeanCreatedEventListener<ChannelPool>