public abstract class ChannelInitializer extends Object implements io.micronaut.context.event.BeanCreatedEventListener<ChannelPool>
Constructor and Description |
---|
ChannelInitializer() |
Modifier and Type | Method and Description |
---|---|
abstract void |
initialize(com.rabbitmq.client.Channel channel)
Do any work with a channel.
|
ChannelPool |
onCreated(io.micronaut.context.event.BeanCreatedEvent<ChannelPool> event) |
public abstract void initialize(com.rabbitmq.client.Channel channel) throws IOException
channel
- The channel to useIOException
- If any error occurspublic ChannelPool onCreated(io.micronaut.context.event.BeanCreatedEvent<ChannelPool> event)
onCreated
in interface io.micronaut.context.event.BeanCreatedEventListener<ChannelPool>