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
    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.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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 interface MsgHandler
      Parameters:
      ctx - ChannelHandlerContext of the connection from netty
    • onMessage

      public void onMessage​(io.netty.channel.ChannelHandlerContext ctx, Message msg)
      Description copied from interface: MsgHandler
      OnMessage action. Called when one message comes from the network.
      Specified by:
      onMessage in interface MsgHandler
      Parameters:
      ctx - ChannelHandlerContext of the connection from netty
      msg - 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 interface MsgHandler
      Parameters:
      ctx - ChannelHandlerContext of the connection from netty