CacheInfo

class CacheInfo : ExecutionContext.Element

Parameters

isCacheHit

true if this was a cache hit

cacheMissException

the exception while reading the cache. Note that it's possible to have isCacheHit == false &&cacheMissException == null if no cache read was attempted

Constructors

Link copied to clipboard
fun CacheInfo(    millisStart: Long,     millisEnd: Long,     hit: Boolean,     missedKey: String?,     missedField: String?)

Types

Link copied to clipboard
class Builder
Link copied to clipboard
object Key : ExecutionContext.Key<CacheInfo>

Functions

Link copied to clipboard
open override fun <R> fold(initial: R, operation: (R, ExecutionContext.Element) -> R): R
Link copied to clipboard
open operator override fun <E : ExecutionContext.Element> get(key: ExecutionContext.Key<E>): E?
Link copied to clipboard
open override fun minusKey(key: ExecutionContext.Key<*>): ExecutionContext
Link copied to clipboard
fun newBuilder(): CacheInfo.Builder
Link copied to clipboard
open operator fun plus(context: ExecutionContext): ExecutionContext

Properties

Link copied to clipboard
val cacheEndMillis: Long
Link copied to clipboard
val cacheMissException: CacheMissException?
Link copied to clipboard
val cacheStartMillis: Long
Link copied to clipboard
val hit: Boolean
Link copied to clipboard
val isCacheHit: Boolean
Link copied to clipboard
open override val key: ExecutionContext.Key<*>
Link copied to clipboard
val millisEnd: Long
Link copied to clipboard
val millisStart: Long
Link copied to clipboard
val missedField: String?
Link copied to clipboard
val missedKey: String?
Link copied to clipboard
val networkEndMillis: Long
Link copied to clipboard
val networkException: ApolloException?
Link copied to clipboard
val networkStartMillis: Long