Record Class ManagerBase.SessionTiming
java.lang.Object
java.lang.Record
org.apache.catalina.session.ManagerBase.SessionTiming
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
SessionTiming
(long timestamp, int duration) Creates an instance of aSessionTiming
record class. -
Method Summary
Modifier and TypeMethodDescriptionint
duration()
Returns the value of theduration
record component.final boolean
Indicates whether some other object is "equal to" this one.int
long
final int
hashCode()
Returns a hash code value for this object.long
Returns the value of thetimestamp
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
SessionTiming
protected SessionTiming(long timestamp, int duration) Creates an instance of aSessionTiming
record class.- Parameters:
timestamp
- the value for thetimestamp
record componentduration
- the value for theduration
record component
-
-
Method Details
-
getTimestamp
public long getTimestamp()- Returns:
- Time stamp associated with this piece of timing information in milliseconds.
-
getDuration
public int getDuration()- Returns:
- Duration associated with this piece of timing information in seconds.
-
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 with thecompare
method from their corresponding wrapper classes. -
timestamp
public long timestamp()Returns the value of thetimestamp
record component.- Returns:
- the value of the
timestamp
record component
-
duration
public int duration()Returns the value of theduration
record component.- Returns:
- the value of the
duration
record component
-