Class EventPushMsgHandler
java.lang.Object
org.fisco.bcos.sdk.eventsub.filter.EventPushMsgHandler
- All Implemented Interfaces:
MsgHandler
public class EventPushMsgHandler extends java.lang.Object implements MsgHandler
EventPushMsgHandler is the type of EVENT_LOG_PUSH message handler.
-
Constructor Summary
Constructors Constructor Description EventPushMsgHandler(FilterManager filterManager)
-
Method Summary
Modifier and Type Method Description void
onConnect(io.netty.channel.ChannelHandlerContext ctx)
OnConnect action.void
onDisconnect(io.netty.channel.ChannelHandlerContext ctx)
OnDisconnect action Called when one connection disconnect.void
onMessage(io.netty.channel.ChannelHandlerContext ctx, Message msg)
OnMessage action.
-
Constructor Details
-
Method Details
-
onConnect
public void onConnect(io.netty.channel.ChannelHandlerContext ctx)Description copied from interface:MsgHandler
OnConnect action. Called when connect success.- Specified by:
onConnect
in interfaceMsgHandler
- Parameters:
ctx
- ChannelHandlerContext of the connection from netty
-
onMessage
Description copied from interface:MsgHandler
OnMessage action. Called when one message comes from the network.- Specified by:
onMessage
in interfaceMsgHandler
- Parameters:
ctx
- ChannelHandlerContext of the connection from nettymsg
- Message from the network
-
onDisconnect
public void onDisconnect(io.netty.channel.ChannelHandlerContext ctx)Description copied from interface:MsgHandler
OnDisconnect action Called when one connection disconnect.- Specified by:
onDisconnect
in interfaceMsgHandler
- Parameters:
ctx
- ChannelHandlerContext of the connection from netty
-