Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for writeAbortCount (0.12 sec)

  1. okhttp/src/main/kotlin/okhttp3/Cache.kt

            return result
          }
    
          override fun remove() {
            check(canRemove) { "remove() before next()" }
            delegate.remove()
          }
        }
      }
    
      @Synchronized fun writeAbortCount(): Int = writeAbortCount
    
      @Synchronized fun writeSuccessCount(): Int = writeSuccessCount
    
      @Throws(IOException::class)
      fun size(): Long = cache.size()
    
      /** Max size of the cache (in bytes). */
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Wed Apr 10 19:46:48 UTC 2024
    - 26.8K bytes
    - Viewed (0)
  2. okhttp/src/test/java/okhttp3/CacheTest.kt

          assertFailsWith<IOException> {
            bodySource.readUtf8(21)
          }
        }
        assertThat(cache.writeAbortCount()).isEqualTo(1)
        assertThat(cache.writeSuccessCount()).isEqualTo(0)
        val response = get(server.url("/"))
        assertThat(response.body.string()).isEqualTo("Request #2")
        assertThat(cache.writeAbortCount()).isEqualTo(1)
        assertThat(cache.writeSuccessCount()).isEqualTo(1)
      }
    
      @Test
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Wed Apr 10 19:46:48 UTC 2024
    - 108.6K bytes
    - Viewed (0)
  3. okhttp/src/test/java/okhttp3/KotlinSourceModernTest.kt

        val cache = Cache(File("/cache/"), Integer.MAX_VALUE.toLong())
        cache.initialize()
        cache.delete()
        cache.evictAll()
        val urls: MutableIterator<String> = cache.urls()
        val writeAbortCount: Int = cache.writeAbortCount()
        val writeSuccessCount: Int = cache.writeSuccessCount()
        val size: Long = cache.size()
        val maxSize: Long = cache.maxSize()
        cache.flush()
        cache.close()
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Apr 01 14:21:25 UTC 2024
    - 46.5K bytes
    - Viewed (0)
  4. okhttp/api/okhttp.api

    	public final fun maxSize ()J
    	public final fun networkCount ()I
    	public final fun requestCount ()I
    	public final fun size ()J
    	public final fun urls ()Ljava/util/Iterator;
    	public final fun writeAbortCount ()I
    	public final fun writeSuccessCount ()I
    }
    
    public final class okhttp3/Cache$Companion {
    	public final fun hasVaryAll (Lokhttp3/Response;)Z
    	public final fun key (Lokhttp3/HttpUrl;)Ljava/lang/String;
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Apr 15 13:41:01 UTC 2024
    - 70.2K bytes
    - Viewed (0)
Back to top