Search Options

Results per page
Sort
Preferred Languages
Advance

Results 121 - 130 of 144 for newBuilder (0.04 sec)

  1. okhttp-logging-interceptor/src/main/kotlin/okhttp3/logging/HttpLoggingInterceptor.kt

        }
    
        internal fun redactUrl(url: HttpUrl): String {
          if (queryParamsNameToRedact.isEmpty() || url.querySize == 0) {
            return url.toString()
          }
          return url
            .newBuilder()
            .query(null)
            .apply {
              for (i in 0 until url.querySize) {
                val parameterName = url.queryParameterName(i)
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Thu Aug 21 14:27:04 UTC 2025
    - 11.4K bytes
    - Viewed (0)
  2. okhttp/src/commonJvmAndroid/kotlin/okhttp3/OkHttpClient.kt

     *     .addInterceptor(new HttpLoggingInterceptor())
     *     .cache(new Cache(cacheDir, cacheSize))
     *     .build();
     * ```
     *
     * ## Customize Your Client With newBuilder()
     *
     * You can customize a shared OkHttpClient instance with [newBuilder]. This builds a client that
     * shares the same connection pool, thread pools, and configuration. Use the builder methods to
     * add configuration to the derived client for a specific purpose.
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Mon May 05 16:01:00 UTC 2025
    - 51.7K bytes
    - Viewed (0)
  3. okhttp/src/jvmTest/kotlin/okhttp3/internal/tls/ClientAuthTest.kt

            .validityInterval(1, 2)
            .build()
        var client = buildClient(clientCert, clientIntermediateCa.certificate)
        val listener = RecordingEventListener()
        client =
          client
            .newBuilder()
            .eventListener(listener)
            .build()
        val socketFactory = buildServerSslSocketFactory()
        server.useHttps(socketFactory)
        server.requireClientAuth()
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Jun 18 12:28:21 UTC 2025
    - 12.7K bytes
    - Viewed (0)
  4. fess-crawler/src/main/java/org/codelibs/fess/crawler/extractor/impl/HtmlXpathExtractor.java

         * This method is called to set up the cache for XPathAPI instances.
         */
        @Resource
        public void init() {
            xpathAPICache =
                    CacheBuilder.newBuilder().expireAfterAccess(cacheDuration, TimeUnit.MINUTES).build(new CacheLoader<String, XPathAPI>() {
                        @Override
                        public XPathAPI load(final String key) {
    Registered: Sun Sep 21 03:50:09 UTC 2025
    - Last Modified: Sun Jul 06 02:13:03 UTC 2025
    - 10.3K bytes
    - Viewed (0)
  5. guava/src/com/google/common/cache/CacheLoader.java

     * CacheLoader<Key, Graph> loader = new CacheLoader<Key, Graph>() {
     *   public Graph load(Key key) throws AnyException {
     *     return createExpensiveGraph(key);
     *   }
     * };
     * LoadingCache<Key, Graph> cache = CacheBuilder.newBuilder().build(loader);
     * }
     *
     * <p>Since this example doesn't support reloading or bulk loading, it can also be specified much
     * more simply:
     *
     * {@snippet :
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 9.5K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/cache/Cache.java

     * @param <V> the type of the cache's values, which are not permitted to be null
     * @author Charles Fry
     * @since 10.0
     */
    @DoNotMock("Use CacheBuilder.newBuilder().build()")
    @GwtCompatible
    public interface Cache<K, V> {
    
      /**
       * Returns the value associated with {@code key} in this cache, or {@code null} if there is no
       * cached value for {@code key}.
       *
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Dec 22 03:38:46 UTC 2024
    - 8.3K bytes
    - Viewed (0)
  7. mockwebserver/api/mockwebserver3.api

    	public final fun getThrottlePeriodNanos ()J
    	public final fun getTrailers ()Lokhttp3/Headers;
    	public final fun getTrailersDelayNanos ()J
    	public final fun getWebSocketListener ()Lokhttp3/WebSocketListener;
    	public final fun newBuilder ()Lmockwebserver3/MockResponse$Builder;
    	public fun toString ()Ljava/lang/String;
    }
    
    public final class mockwebserver3/MockResponse$Builder : java/lang/Cloneable {
    	public fun <init> ()V
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Fri Jun 20 11:46:46 UTC 2025
    - 11.8K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/fess/taglib/FessFunctions.java

         * The cache expires after 10 minutes and has a maximum size of 1000 entries.
         */
        private static LoadingCache<String, Long> resourceHashCache =
                CacheBuilder.newBuilder().maximumSize(1000).expireAfterWrite(10, TimeUnit.MINUTES).build(new CacheLoader<String, Long>() {
                    @Override
                    public Long load(final String key) throws Exception {
                        try {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Aug 07 03:06:29 UTC 2025
    - 25.3K bytes
    - Viewed (1)
  9. src/main/java/org/codelibs/fess/helper/CrawlerStatsHelper.java

         * statistics objects with the configured size and expiration settings.
         */
        @PostConstruct
        public void init() {
            statsLogger = LogManager.getLogger(loggerName);
            statsCache = CacheBuilder.newBuilder()
                    .maximumSize(maxCacheSize)
                    .expireAfterWrite(cacheExpireAfterWrite, TimeUnit.MILLISECONDS)
                    .build(new CacheLoader<String, StatsObject>() {
                        @Override
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Aug 07 03:06:29 UTC 2025
    - 17.4K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/cache/CacheBuilder.java

     * cache instances created by {@code CacheBuilder} will not perform any type of eviction.
     *
     * <p>Usage example:
     *
     * {@snippet :
     * LoadingCache<Key, Graph> graphs = CacheBuilder.newBuilder()
     *     .maximumSize(10000)
     *     .expireAfterWrite(Duration.ofMinutes(10))
     *     .removalListener(MY_LISTENER)
     *     .build(
     *         new CacheLoader<Key, Graph>() {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 51.7K bytes
    - Viewed (0)
Back to top