- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 14 for CacheMiss (0.07 sec)
-
okhttp/src/main/kotlin/okhttp3/internal/cache/CacheInterceptor.kt
listener.cacheHit(call, it) } } if (cacheResponse != null) { listener.cacheConditionalHit(call, cacheResponse) } else if (cache != null) { listener.cacheMiss(call) } var networkResponse: Response? = null try { networkResponse = chain.proceed(networkRequest) } finally { // If we're crashing on I/O or otherwise, don't leak the cache body.
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Fri Mar 22 07:09:21 UTC 2024 - 10.2K bytes - Viewed (0) -
okhttp-logging-interceptor/src/main/kotlin/okhttp3/logging/LoggingEventListener.kt
} override fun cacheHit( call: Call, response: Response, ) { logWithTime("cacheHit: $response") } override fun cacheMiss(call: Call) { logWithTime("cacheMiss") } override fun cacheConditionalHit( call: Call, cachedResponse: Response, ) { logWithTime("cacheConditionalHit: $cachedResponse") }
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Apr 01 11:07:32 UTC 2024 - 5.4K bytes - Viewed (0) -
build-logic-commons/gradle-plugin/src/main/kotlin/gradlebuild.cache-miss-monitor.gradle.kts
private val cacheMiss: AtomicBoolean = AtomicBoolean(false) override val collectedInformation: Serializable = cacheMiss override fun action(taskPath: String, taskResult: TaskOperationResult) { if (taskResult is TaskSuccessResult && !taskResult.isFromCache && !taskResult.isUpToDate) { println("CACHE_MISS in task $taskPath") cacheMiss.set(true) } } }
Registered: Wed Nov 06 11:36:14 UTC 2024 - Last Modified: Thu Mar 07 05:49:29 UTC 2024 - 4.6K bytes - Viewed (0) -
okhttp-testing-support/src/main/kotlin/okhttp3/ClientRuleEventListener.kt
call: Call, response: Response, ) { logWithTime("satisfactionFailure") delegate.satisfactionFailure(call, response) } override fun cacheMiss(call: Call) { logWithTime("cacheMiss") delegate.cacheMiss(call) } override fun cacheHit( call: Call, response: Response, ) { logWithTime("cacheHit") delegate.cacheHit(call, response) }
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 6K bytes - Viewed (0) -
okhttp-testing-support/src/main/kotlin/okhttp3/RecordingEventListener.kt
override fun satisfactionFailure( call: Call, response: Response, ) = logEvent(SatisfactionFailure(System.nanoTime(), call)) override fun cacheMiss(call: Call) = logEvent(CacheMiss(System.nanoTime(), call)) override fun cacheHit( call: Call, response: Response, ) = logEvent(CacheHit(System.nanoTime(), call)) override fun cacheConditionalHit(
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 9K bytes - Viewed (0) -
okhttp-logging-interceptor/src/test/java/okhttp3/logging/LoggingEventListenerTest.kt
listener.cacheHit(call, response) listener.cacheMiss(call) listener.satisfactionFailure(call, response) logRecorder .assertLogMatch(Regex("""cacheConditionalHit: Response\{protocol=h2, code=200, message=, url=$url\}""")) .assertLogMatch(Regex("""cacheHit: Response\{protocol=h2, code=200, message=, url=$url\}""")) .assertLogMatch(Regex("""cacheMiss"""))
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Sun Jan 14 10:20:09 UTC 2024 - 10.2K bytes - Viewed (0) -
compat/maven-model-builder/src/main/java/org/apache/maven/model/interpolation/reflection/ClassMap.java
* * @deprecated use {@link org.apache.maven.api.services.ModelBuilder} instead */ @Deprecated(since = "4.0.0") class ClassMap { private static final class CacheMiss {} private static final CacheMiss CACHE_MISS = new CacheMiss(); private static final Object OBJECT = new Object(); /** * Class passed into the constructor used to as * the basis for the Method map. */
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 13.5K bytes - Viewed (0) -
okhttp-logging-interceptor/api/logging-interceptor.api
public fun cacheConditionalHit (Lokhttp3/Call;Lokhttp3/Response;)V public fun cacheHit (Lokhttp3/Call;Lokhttp3/Response;)V public fun cacheMiss (Lokhttp3/Call;)V public fun callEnd (Lokhttp3/Call;)V public fun callFailed (Lokhttp3/Call;Ljava/io/IOException;)V public fun callStart (Lokhttp3/Call;)V public fun canceled (Lokhttp3/Call;)V
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Sat Apr 06 09:14:38 UTC 2024 - 4.5K bytes - Viewed (0) -
okhttp-testing-support/src/main/kotlin/okhttp3/CallEvent.kt
override val call: Call, ) : CallEvent() data class CacheHit( override val timestampNs: Long, override val call: Call, ) : CallEvent() data class CacheMiss( override val timestampNs: Long, override val call: Call, ) : CallEvent() data class CacheConditionalHit( override val timestampNs: Long, override val call: Call, ) : CallEvent()
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 6.7K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/EventListener.kt
* * This event will only be received when a Cache is configured for the client. */ open fun cacheMiss(call: Call) { } /** * Invoked when a response will be served from the cache or network based on validating the * cached Response freshness. Will be followed by cacheHit or cacheMiss after the network * Response is available. *
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 15.2K bytes - Viewed (0)