Interface Net

  • All Known Implementing Classes:
    JsonRpc2_0Net

    @Deprecated
    public interface Net
    Deprecated.
    Please use Net instead.
    See Also:
    RPC
    • Method Summary

      All Methods Instance Methods Abstract 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.
    • Method Detail

      • getNetworkId

        org.web3j.protocol.core.Request<?,​Bytes> getNetworkId()
        Deprecated.
        Returns the network identifier (network ID).
        Returns:
        Bytes - The integer of the network identifier.
      • isListening

        org.web3j.protocol.core.Request<?,​Boolean> isListening()
        Deprecated.
        Returns true if the client is actively listening for network connections.
        Returns:
        Boolean - true when listening, otherwise false
      • getPeerCount

        org.web3j.protocol.core.Request<?,​Quantity> getPeerCount()
        Deprecated.
        Returns the number of peers currently connected to the client.
        Returns:
        Quantity - Integer of the number of connected peers.
      • getPeerCountByType

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