java.lang.Object
net.i2p.i2ptunnel.web.IndexBean.TimestampedMessage
Enclosing class:
IndexBean

private static class IndexBean.TimestampedMessageextends Object
A message with an associated timestamp for display in the web UI. Used to show ordered status updates with time information.
  • Field Details

    • _FORMAT

      private static final ThreadLocal<DateFormat> _FORMAT
      Per-thread formatter for the message timestamps.
    • timestamp

      final long timestamp
      When the message was created.
    • message

      final String message
      The message text.
  • Constructor Details

    • TimestampedMessage

      public TimestampedMessage(String message)
      Create a timestamped message with the current time.
      Parameters:
      message - the message text to timestamp
  • Method Details

    • getFormattedTimestamp

      public String getFormattedTimestamp()
      Format the timestamp as "dd/MM HH:mm:ss".
      Returns:
      the formatted timestamp string