Class ClientSocketStatistics

java.lang.Object
ecmwf.common.rmi.ClientSocketStatistics

public class ClientSocketStatistics extends Object
The Class ClientSocketStatistics.
  • Constructor Details

    • ClientSocketStatistics

      public ClientSocketStatistics()
  • Method Details

    • add

      public void add(Socket socket, long startTime) throws IOException
      Adds the.
      Parameters:
      socket - the socket
      startTime - the start time
      Throws:
      IOException - Signals that an I/O exception has occurred.
    • isEmpty

      public boolean isEmpty()
      Checks if is empty.
      Returns:
      true, if is empty
    • setSnapshotListener

      public void setSnapshotListener(Consumer<ClientSocketStatistics.Snapshot> listener)
      Optional late-close evidence; listeners must be nonblocking and must not retain transport objects.
    • snapshot

      Copies bounded immutable values only; no Socket escapes into optional telemetry queues.
    • toString

      public String toString()
      To string.
      Overrides:
      toString in class Object