Class JsonRpc2_0Net

  • All Implemented Interfaces:
    Net

    @Deprecated
    public class JsonRpc2_0Net
    extends java.lang.Object
    implements Net
    Deprecated.
    Please use Net instead.
    See Also:
    RPC
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected org.web3j.protocol.Web3jService web3jService
      Deprecated.
       
    • Constructor Summary

      Constructors 
      Constructor Description
      JsonRpc2_0Net​(org.web3j.protocol.Web3jService web3jService)
      Deprecated.
       
    • Method Summary

      All Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      org.web3j.protocol.core.Request<?,​Bytes> getNetworkId()
      Deprecated.
      Returns the network identifier (network ID).
      org.web3j.protocol.core.Request<?,​Quantity> getPeerCount()
      Deprecated.
      Returns the number of peers currently connected to the client.
      org.web3j.protocol.core.Request<?,​KlayPeerCount> getPeerCountByType()
      Deprecated.
      Returns the number of connected nodes by type and the total number of connected nodes.
      org.web3j.protocol.core.Request<?,​Boolean> isListening()
      Deprecated.
      Returns true if the client is actively listening for network connections.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • web3jService

        protected final org.web3j.protocol.Web3jService web3jService
        Deprecated.
    • Constructor Detail

      • JsonRpc2_0Net

        public JsonRpc2_0Net​(org.web3j.protocol.Web3jService web3jService)
        Deprecated.
    • Method Detail

      • getNetworkId

        public org.web3j.protocol.core.Request<?,​Bytes> getNetworkId()
        Deprecated.
        Description copied from interface: Net
        Returns the network identifier (network ID).
        Specified by:
        getNetworkId in interface Net
        Returns:
        Bytes - The integer of the network identifier.
      • isListening

        public org.web3j.protocol.core.Request<?,​Boolean> isListening()
        Deprecated.
        Description copied from interface: Net
        Returns true if the client is actively listening for network connections.
        Specified by:
        isListening in interface Net
        Returns:
        Boolean - true when listening, otherwise false
      • getPeerCount

        public org.web3j.protocol.core.Request<?,​Quantity> getPeerCount()
        Deprecated.
        Description copied from interface: Net
        Returns the number of peers currently connected to the client.
        Specified by:
        getPeerCount in interface Net
        Returns:
        Quantity - Integer of the number of connected peers.
      • getPeerCountByType

        public org.web3j.protocol.core.Request<?,​KlayPeerCount> getPeerCountByType()
        Deprecated.
        Description copied from interface: Net
        Returns the number of connected nodes by type and the total number of connected nodes.
        Specified by:
        getPeerCountByType in interface Net
        Returns:
        KlayPeerCount - The number of connected peers by type as well as the total number of connected peers.