Record Class TableCountDto
java.lang.Object
java.lang.Record
io.datarouter.instrumentation.tablecount.TableCountDto
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theclientNamerecord component.Returns the value of thecountTimeMsrecord component.Returns the value of thedateUpdatedrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.numRows()Returns the value of thenumRowsrecord component.Returns the value of thenumSlowSpansrecord component.numSpans()Returns the value of thenumSpansrecord component.Returns the value of theserviceNamerecord component.Returns the value of thetableNamerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
TableCountDto
public TableCountDto(String serviceName, String clientName, String tableName, Long numRows, Instant dateUpdated, Long countTimeMs, Long numSpans, Long numSlowSpans) Creates an instance of aTableCountDtorecord class.- Parameters:
serviceName- the value for theserviceNamerecord componentclientName- the value for theclientNamerecord componenttableName- the value for thetableNamerecord componentnumRows- the value for thenumRowsrecord componentdateUpdated- the value for thedateUpdatedrecord componentcountTimeMs- the value for thecountTimeMsrecord componentnumSpans- the value for thenumSpansrecord componentnumSlowSpans- the value for thenumSlowSpansrecord component
-
-
Method Details
-
getDateUpdate
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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). -
serviceName
Returns the value of theserviceNamerecord component.- Returns:
- the value of the
serviceNamerecord component
-
clientName
Returns the value of theclientNamerecord component.- Returns:
- the value of the
clientNamerecord component
-
tableName
Returns the value of thetableNamerecord component.- Returns:
- the value of the
tableNamerecord component
-
numRows
Returns the value of thenumRowsrecord component.- Returns:
- the value of the
numRowsrecord component
-
dateUpdated
Returns the value of thedateUpdatedrecord component.- Returns:
- the value of the
dateUpdatedrecord component
-
countTimeMs
Returns the value of thecountTimeMsrecord component.- Returns:
- the value of the
countTimeMsrecord component
-
numSpans
Returns the value of thenumSpansrecord component.- Returns:
- the value of the
numSpansrecord component
-
numSlowSpans
Returns the value of thenumSlowSpansrecord component.- Returns:
- the value of the
numSlowSpansrecord component
-