public class MessageListener extends Object implements IMessageListener
Constructor and Description |
---|
MessageListener() |
Modifier and Type | Method and Description |
---|---|
void |
onChannelInitializeException(io.netty.channel.ChannelHandlerContext ctx,
Throwable cause)
Called when a error occur in the channel initialize, usually ssl handshake error.
|
void |
onConnectionClose(io.netty.channel.ChannelHandlerContext ctx)
Triggered when a connection is close on the remote end and we need to flush buffered
events to the queue.
|
void |
onException(io.netty.channel.ChannelHandlerContext ctx,
Throwable cause)
Called went something bad occur in the pipeline, allow to clear buffered codec went
somethign goes wrong.
|
void |
onNewConnection(io.netty.channel.ChannelHandlerContext ctx)
Triggered when a new client connect to the input, this is used to link a connection
to a codec in the ruby world.
|
void |
onNewMessage(io.netty.channel.ChannelHandlerContext ctx,
Message message)
This is triggered on every new message parsed by the beats handler
and should be executed in the ruby world.
|
public void onNewMessage(io.netty.channel.ChannelHandlerContext ctx, Message message)
onNewMessage
in interface IMessageListener
ctx
- message
- public void onNewConnection(io.netty.channel.ChannelHandlerContext ctx)
onNewConnection
in interface IMessageListener
ctx
- public void onConnectionClose(io.netty.channel.ChannelHandlerContext ctx)
onConnectionClose
in interface IMessageListener
ctx
- public void onException(io.netty.channel.ChannelHandlerContext ctx, Throwable cause)
onException
in interface IMessageListener
ctx
- cause
- public void onChannelInitializeException(io.netty.channel.ChannelHandlerContext ctx, Throwable cause)
onChannelInitializeException
in interface IMessageListener
ctx
- cause
- Copyright © 2017. All rights reserved.