Record Class DevLogEvent
java.lang.Object
java.lang.Record
io.fluxzero.devserver.DevLogEvent
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionDevLogEvent(long sequence, long timestamp, DevLogEvent.Level level, String source, String serviceType, String serviceId, String instanceId, String operationId, String stream, String message) Creates an instance of aDevLogEventrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theinstanceIdrecord component.level()Returns the value of thelevelrecord component.message()Returns the value of themessagerecord component.Returns the value of theoperationIdrecord component.longsequence()Returns the value of thesequencerecord component.Returns the value of theserviceIdrecord component.Returns the value of theserviceTyperecord component.source()Returns the value of thesourcerecord component.stream()Returns the value of thestreamrecord component.longReturns the value of thetimestamprecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
DevLogEvent
public DevLogEvent(long sequence, long timestamp, DevLogEvent.Level level, String source, String serviceType, String serviceId, String instanceId, String operationId, String stream, String message) Creates an instance of aDevLogEventrecord class.- Parameters:
sequence- the value for thesequencerecord componenttimestamp- the value for thetimestamprecord componentlevel- the value for thelevelrecord componentsource- the value for thesourcerecord componentserviceType- the value for theserviceTyperecord componentserviceId- the value for theserviceIdrecord componentinstanceId- the value for theinstanceIdrecord componentoperationId- the value for theoperationIdrecord componentstream- the value for thestreamrecord componentmessage- the value for themessagerecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
sequence
public long sequence()Returns the value of thesequencerecord component.- Returns:
- the value of the
sequencerecord component
-
timestamp
public long timestamp()Returns the value of thetimestamprecord component.- Returns:
- the value of the
timestamprecord component
-
level
Returns the value of thelevelrecord component.- Returns:
- the value of the
levelrecord component
-
source
Returns the value of thesourcerecord component.- Returns:
- the value of the
sourcerecord component
-
serviceType
Returns the value of theserviceTyperecord component.- Returns:
- the value of the
serviceTyperecord component
-
serviceId
Returns the value of theserviceIdrecord component.- Returns:
- the value of the
serviceIdrecord component
-
instanceId
Returns the value of theinstanceIdrecord component.- Returns:
- the value of the
instanceIdrecord component
-
operationId
Returns the value of theoperationIdrecord component.- Returns:
- the value of the
operationIdrecord component
-
stream
Returns the value of thestreamrecord component.- Returns:
- the value of the
streamrecord component
-
message
Returns the value of themessagerecord component.- Returns:
- the value of the
messagerecord component
-