Record Class AccessLogComponent.RequestContentItem
java.lang.Object
java.lang.Record
com.yahoo.vespa.model.container.component.AccessLogComponent.RequestContentItem
- Enclosing class:
- AccessLogComponent
-
Constructor Summary
ConstructorsConstructorDescriptionRequestContentItem(double samplesPerSecond, String pathPrefix, int maxBytes) Creates an instance of aRequestContentItemrecord 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.intmaxBytes()Returns the value of themaxBytesrecord component.Returns the value of thepathPrefixrecord component.doubleReturns the value of thesamplesPerSecondrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
RequestContentItem
Creates an instance of aRequestContentItemrecord class.- Parameters:
samplesPerSecond- the value for thesamplesPerSecondrecord componentpathPrefix- the value for thepathPrefixrecord componentmaxBytes- the value for themaxBytesrecord component
-
-
Method Details
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
samplesPerSecond
public double samplesPerSecond()Returns the value of thesamplesPerSecondrecord component.- Returns:
- the value of the
samplesPerSecondrecord component
-
pathPrefix
Returns the value of thepathPrefixrecord component.- Returns:
- the value of the
pathPrefixrecord component
-
maxBytes
public int maxBytes()Returns the value of themaxBytesrecord component.- Returns:
- the value of the
maxBytesrecord component
-