Class TransactionNotifyHandler
java.lang.Object
org.fisco.bcos.sdk.client.handler.TransactionNotifyHandler
- All Implemented Interfaces:
MsgHandler
public class TransactionNotifyHandler extends java.lang.Object implements MsgHandler
-
Constructor Summary
Constructors Constructor Description TransactionNotifyHandler(java.util.function.Consumer<Message> transactionNotifyReceiver) -
Method Summary
Modifier and Type Method Description voidonConnect(io.netty.channel.ChannelHandlerContext ctx)OnConnect action.voidonDisconnect(io.netty.channel.ChannelHandlerContext ctx)OnDisconnect action Called when one connection disconnect.voidonMessage(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:MsgHandlerOnConnect action. Called when connect success.- Specified by:
onConnectin interfaceMsgHandler- Parameters:
ctx- ChannelHandlerContext of the connection from netty
-
onMessage
Description copied from interface:MsgHandlerOnMessage action. Called when one message comes from the network.- Specified by:
onMessagein 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:MsgHandlerOnDisconnect action Called when one connection disconnect.- Specified by:
onDisconnectin interfaceMsgHandler- Parameters:
ctx- ChannelHandlerContext of the connection from netty
-