java.lang.Object
net.i2p.i2ptunnel.web.IndexBean.TimestampedMessage
- Enclosing class:
IndexBean
A message with an associated timestamp for display in the web UI. Used to show ordered status updates with time information.
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final ThreadLocal<DateFormat> Per-thread formatter for the message timestamps.(package private) final StringThe message text.(package private) final longWhen the message was created.Constructor Summary
ConstructorsConstructorDescriptionTimestampedMessage(String message) Create a timestamped message with the current time.Method Summary
All MethodsModifier and TypeMethodDescriptionFormat the timestamp as "dd/MM HH:mm:ss".
Field Details
_FORMAT
Per-thread formatter for the message timestamps.timestamp
final long timestampWhen the message was created.message
The message text.
Constructor Details
TimestampedMessage
Create a timestamped message with the current time.- Parameters:
message- the message text to timestamp
Method Details
getFormattedTimestamp
Format the timestamp as "dd/MM HH:mm:ss".- Returns:
- the formatted timestamp string