class FreshnessCalculator extends AnyRef
- Alphabetic
- By Inheritance
- FreshnessCalculator
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def calculateFreshnessFromExpires(request: CacheRequest, response: CacheResponse): Option[Seconds]
Returns the freshness duration as calculated from the Expires header.
Returns the freshness duration as calculated from the Expires header.
https://tools.ietf.org/html/rfc7234#section-4.2.1
- def calculateFreshnessFromHeuristic(request: CacheRequest, response: CacheResponse): Option[Seconds]
Returns the freshness lifetime from heuristics, or None if the response is stale.
Returns the freshness lifetime from heuristics, or None if the response is stale.
https://tools.ietf.org/html/rfc7234#section-4.2.2
- def calculateFreshnessFromMaxAge(request: CacheRequest, response: CacheResponse): Option[Seconds]
Returns the freshness duration as calculated from the Max-Age cache directive.
Returns the freshness duration as calculated from the Max-Age cache directive.
https://tools.ietf.org/html/rfc7234#section-4.2.1
- def calculateFreshnessFromSMaxAge(request: CacheRequest, response: CacheResponse): Option[Seconds]
Calculates the freshness lifetime from the s-maxage cache directive, if the cache is shared.
- def calculateFreshnessLifetime(request: CacheRequest, response: CacheResponse): Seconds
Returns the freshness lifetime in seconds.
Returns the freshness lifetime in seconds.
https://tools.ietf.org/html/rfc7234#section-4.2.1
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @HotSpotIntrinsicCandidate() @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @HotSpotIntrinsicCandidate() @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @HotSpotIntrinsicCandidate() @native()
- def isFreshnessInformationInvalid(request: CacheRequest, response: CacheResponse): Boolean
Returns true if the freshness information is invalid, false otherwise.
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @HotSpotIntrinsicCandidate() @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @HotSpotIntrinsicCandidate() @native()
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- def unapplySeq(directives: Seq[CacheDirective]): Option[Seconds]
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated
(Since version 9)