Class PeerStats.PeerStatsBuilder

java.lang.Object
org.stellar.sdk.xdr.PeerStats.PeerStatsBuilder
Enclosing class:
PeerStats

public static class PeerStats.PeerStatsBuilder extends Object
  • Method Details

    • id

      Value of the id field.
      Parameters:
      id - the id field value
      Returns:
      this.
    • versionStr

      public PeerStats.PeerStatsBuilder versionStr(XdrString versionStr)
      Value of the versionStr field.
      Parameters:
      versionStr - the versionStr field value
      Returns:
      this.
    • messagesRead

      public PeerStats.PeerStatsBuilder messagesRead(Uint64 messagesRead)
      Value of the messagesRead field.
      Parameters:
      messagesRead - the messagesRead field value
      Returns:
      this.
    • messagesWritten

      public PeerStats.PeerStatsBuilder messagesWritten(Uint64 messagesWritten)
      Value of the messagesWritten field.
      Parameters:
      messagesWritten - the messagesWritten field value
      Returns:
      this.
    • bytesRead

      public PeerStats.PeerStatsBuilder bytesRead(Uint64 bytesRead)
      Value of the bytesRead field.
      Parameters:
      bytesRead - the bytesRead field value
      Returns:
      this.
    • bytesWritten

      public PeerStats.PeerStatsBuilder bytesWritten(Uint64 bytesWritten)
      Value of the bytesWritten field.
      Parameters:
      bytesWritten - the bytesWritten field value
      Returns:
      this.
    • secondsConnected

      public PeerStats.PeerStatsBuilder secondsConnected(Uint64 secondsConnected)
      Value of the secondsConnected field.
      Parameters:
      secondsConnected - the secondsConnected field value
      Returns:
      this.
    • uniqueFloodBytesRecv

      public PeerStats.PeerStatsBuilder uniqueFloodBytesRecv(Uint64 uniqueFloodBytesRecv)
      Value of the uniqueFloodBytesRecv field.
      Parameters:
      uniqueFloodBytesRecv - the uniqueFloodBytesRecv field value
      Returns:
      this.
    • duplicateFloodBytesRecv

      public PeerStats.PeerStatsBuilder duplicateFloodBytesRecv(Uint64 duplicateFloodBytesRecv)
      Value of the duplicateFloodBytesRecv field.
      Parameters:
      duplicateFloodBytesRecv - the duplicateFloodBytesRecv field value
      Returns:
      this.
    • uniqueFetchBytesRecv

      public PeerStats.PeerStatsBuilder uniqueFetchBytesRecv(Uint64 uniqueFetchBytesRecv)
      Value of the uniqueFetchBytesRecv field.
      Parameters:
      uniqueFetchBytesRecv - the uniqueFetchBytesRecv field value
      Returns:
      this.
    • duplicateFetchBytesRecv

      public PeerStats.PeerStatsBuilder duplicateFetchBytesRecv(Uint64 duplicateFetchBytesRecv)
      Value of the duplicateFetchBytesRecv field.
      Parameters:
      duplicateFetchBytesRecv - the duplicateFetchBytesRecv field value
      Returns:
      this.
    • uniqueFloodMessageRecv

      public PeerStats.PeerStatsBuilder uniqueFloodMessageRecv(Uint64 uniqueFloodMessageRecv)
      Value of the uniqueFloodMessageRecv field.
      Parameters:
      uniqueFloodMessageRecv - the uniqueFloodMessageRecv field value
      Returns:
      this.
    • duplicateFloodMessageRecv

      public PeerStats.PeerStatsBuilder duplicateFloodMessageRecv(Uint64 duplicateFloodMessageRecv)
      Value of the duplicateFloodMessageRecv field.
      Parameters:
      duplicateFloodMessageRecv - the duplicateFloodMessageRecv field value
      Returns:
      this.
    • uniqueFetchMessageRecv

      public PeerStats.PeerStatsBuilder uniqueFetchMessageRecv(Uint64 uniqueFetchMessageRecv)
      Value of the uniqueFetchMessageRecv field.
      Parameters:
      uniqueFetchMessageRecv - the uniqueFetchMessageRecv field value
      Returns:
      this.
    • duplicateFetchMessageRecv

      public PeerStats.PeerStatsBuilder duplicateFetchMessageRecv(Uint64 duplicateFetchMessageRecv)
      Value of the duplicateFetchMessageRecv field.
      Parameters:
      duplicateFetchMessageRecv - the duplicateFetchMessageRecv field value
      Returns:
      this.
    • build

      public PeerStats build()
    • toString

      public String toString()
      Overrides:
      toString in class Object