Record Class DefaultModelBuilder.SourceCacheKey
java.lang.Object
java.lang.Record
org.apache.maven.impl.model.DefaultModelBuilder.SourceCacheKey
- All Implemented Interfaces:
CacheMetadata,Request<Session>
- Enclosing class:
DefaultModelBuilder
public static record DefaultModelBuilder.SourceCacheKey(Session session, RequestTrace trace, Source source, String tag)
extends Record
implements Request<Session>, CacheMetadata
-
Constructor Summary
ConstructorsConstructorDescriptionSourceCacheKey(Session session, RequestTrace trace, Source source, String tag) Creates an instance of aSourceCacheKeyrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanIndicates whether some other object is "equal to" this one.Returns the cache retention that should be applied to the associated data.Returns the session associated with this request.getTrace()Returns the trace information associated with this request, if any.inthashCode()Returns a hash code value for this object.session()Returns the value of thesessionrecord component.source()Returns the value of thesourcerecord component.tag()Returns the value of thetagrecord component.toString()Returns a string representation of this record class.trace()Returns the value of thetracerecord component.
-
Constructor Details
-
SourceCacheKey
Creates an instance of aSourceCacheKeyrecord class.- Parameters:
session- the value for thesessionrecord componenttrace- the value for thetracerecord componentsource- the value for thesourcerecord componenttag- the value for thetagrecord component
-
-
Method Details
-
getSession
-
getTrace
Description copied from interface:RequestReturns the trace information associated with this request, if any. The trace provides context about the request's position in the operation hierarchy and can carry additional diagnostic information. -
getCacheRetention
Description copied from interface:CacheMetadataReturns the cache retention that should be applied to the associated data.- Specified by:
getCacheRetentionin interfaceCacheMetadata- Returns:
- The CacheRetention indicating how long data should be retained, or null if no specific cache retention is defined
-
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). -
hashCode
-
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. -
session
Returns the value of thesessionrecord component.- Returns:
- the value of the
sessionrecord component
-
trace
Returns the value of thetracerecord component.- Returns:
- the value of the
tracerecord component
-
source
Returns the value of thesourcerecord component.- Returns:
- the value of the
sourcerecord component
-
tag
Returns the value of thetagrecord component.- Returns:
- the value of the
tagrecord component
-