Class ResponseCallback

java.lang.Object
org.fisco.bcos.sdk.channel.ResponseCallback

public abstract class ResponseCallback
extends java.lang.Object
ResponseCallback is to define a callback to handle response from node.
  • Constructor Summary

    Constructors 
    Constructor Description
    ResponseCallback()  
  • Method Summary

    Modifier and Type Method Description
    void cancelTimeout()  
    io.netty.util.Timeout getTimeout()  
    void onError​(java.lang.String errorMessage)  
    abstract void onResponse​(Response response)
    OnResponse
    void onTimeout()  
    void setTimeout​(io.netty.util.Timeout timeout)  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • onResponse

      public abstract void onResponse​(Response response)
      OnResponse
      Parameters:
      response - the response from node
    • onTimeout

      public void onTimeout()
    • cancelTimeout

      public void cancelTimeout()
    • onError

      public void onError​(java.lang.String errorMessage)
    • getTimeout

      public io.netty.util.Timeout getTimeout()
    • setTimeout

      public void setTimeout​(io.netty.util.Timeout timeout)