Record Class SlowLogCollector.Entry
java.lang.Object
java.lang.Record
cloud.opencode.base.observability.SlowLogCollector.Entry
- Record Components:
operation- the operation name (e.g., GET, PUT) | 操作名称key- the key or resource involved | 涉及的键或资源elapsed- the elapsed duration of the operation | 操作的耗时timestamp- the instant when the operation was recorded | 操作被记录的时间戳threadName- the name of the thread that executed the operation | 执行线程名称
- Enclosing class:
SlowLogCollector
public static record SlowLogCollector.Entry(String operation, String key, Duration elapsed, Instant timestamp, String threadName)
extends Record
A single slow log entry capturing details of a slow operation.
单条慢日志条目,记录慢操作的详细信息。
- Since:
- JDK 25, opencode-base-observability V1.0.0
- Author:
- Leon Soo www.LeonSoo.com
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionelapsed()Returns the value of theelapsedrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.key()Returns the value of thekeyrecord component.Returns the value of theoperationrecord component.Returns the value of thethreadNamerecord component.Returns the value of thetimestamprecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Entry
-
-
Method Details
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
operation
-
key
-
elapsed
-
timestamp
-
threadName
Returns the value of thethreadNamerecord component.- Returns:
- the value of the
threadNamerecord component
-