Record Class LogEvt
java.lang.Object
java.lang.Record
org.jpos.log.evt.LogEvt
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.events()Returns the value of theeventsrecord component.final inthashCode()Returns a hash code value for this object.lifespan()Returns the value of thelifespanrecord component.realm()Returns the value of therealmrecord component.tag()Returns the value of thetagrecord component.final StringtoString()Returns a string representation of this record class.traceId()Returns the value of thetraceIdrecord component.ts()Returns the value of thetsrecord component.
-
Constructor Details
-
LogEvt
public LogEvt(Instant ts, String traceId, String realm, String tag, Long lifespan, List<AuditLogEvent> events) Creates an instance of aLogEvtrecord class.- Parameters:
ts- the value for thetsrecord componenttraceId- the value for thetraceIdrecord componentrealm- the value for therealmrecord componenttag- the value for thetagrecord componentlifespan- the value for thelifespanrecord componentevents- the value for theeventsrecord component
-
-
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). -
ts
-
traceId
-
realm
-
tag
-
lifespan
-
events
Returns the value of theeventsrecord component.- Returns:
- the value of the
eventsrecord component
-