Search Options

Results per page
Sort
Preferred Languages
Advance

Results 131 - 140 of 144 for newBuilder (0.05 sec)

  1. android/guava-tests/test/com/google/common/cache/LocalCacheTest.java

        return new LocalCache<>(builder, loader);
      }
    
      // TODO(cpovirk): Inline createCacheBuilder()?
    
      private static CacheBuilder<Object, Object> createCacheBuilder() {
        return CacheBuilder.newBuilder();
      }
    
      // constructor tests
    
      public void testDefaults() {
        LocalCache<Object, Object> map = makeLocalCache(createCacheBuilder());
    
        assertSame(Strength.STRONG, map.keyStrength);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Aug 11 19:31:30 UTC 2025
    - 110.5K bytes
    - Viewed (0)
  2. src/main/java/org/codelibs/fess/helper/SearchLogHelper.java

         */
        @PostConstruct
        public void init() {
            if (logger.isDebugEnabled()) {
                logger.debug("Initialize {}", this.getClass().getSimpleName());
            }
            userInfoCache = CacheBuilder.newBuilder()//
                    .maximumSize(userInfoCacheSize)//
                    .expireAfterWrite(userCheckInterval, TimeUnit.MILLISECONDS)//
                    .build(new CacheLoader<String, UserInfo>() {
                        @Override
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Aug 07 03:06:29 UTC 2025
    - 26.3K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/fess/helper/CrawlingConfigHelper.java

         */
        @PostConstruct
        public void init() {
            if (logger.isDebugEnabled()) {
                logger.debug("Initialize {}", this.getClass().getSimpleName());
            }
            crawlingConfigCache = CacheBuilder.newBuilder().maximumSize(100).expireAfterWrite(10, TimeUnit.MINUTES).build();
        }
    
        /**
         * Determines the configuration type from a given config ID.
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 19.5K bytes
    - Viewed (0)
  4. fess-crawler/src/main/java/org/codelibs/fess/crawler/transformer/impl/XmlTransformer.java

            super();
        }
    
        /**
         * Initializes this component.
         */
        @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
    - 23.9K bytes
    - Viewed (0)
  5. okhttp-logging-interceptor/src/test/java/okhttp3/logging/HttpLoggingInterceptorTest.kt

        setLevel(Level.HEADERS)
        extraNetworkInterceptor =
          Interceptor { chain: Interceptor.Chain ->
            chain.proceed(
              chain
                .request()
                .newBuilder()
                .header("Content-Length", "2")
                .header("Content-Type", "text/plain-ish")
                .build(),
            )
          }
        server.enqueue(MockResponse())
        client
          .newCall(
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Thu Aug 21 14:27:04 UTC 2025
    - 37.5K bytes
    - Viewed (0)
  6. okhttp/src/commonJvmAndroid/kotlin/okhttp3/Cookie.kt

            append("; httponly")
          }
    
          if (sameSite != null) {
            append("; samesite=").append(sameSite)
          }
    
          return toString()
        }
      }
    
      fun newBuilder(): Builder = Builder(this)
    
      /**
       * Builds a cookie. The [name], [value], and [domain] values must all be set before calling
       * [build].
       */
      class Builder() {
        private var name: String? = null
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Mon May 05 16:01:00 UTC 2025
    - 23.1K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/fess/helper/PluginHelper.java

         * Cache for storing available artifacts by type.
         * The cache expires after 5 minutes and has a maximum size of 10 entries.
         */
        protected LoadingCache<ArtifactType, Artifact[]> availableArtifacts = CacheBuilder.newBuilder()
                .maximumSize(10)
                .expireAfterWrite(5, TimeUnit.MINUTES)
                .build(new CacheLoader<ArtifactType, Artifact[]>() {
                    @Override
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Aug 07 03:06:29 UTC 2025
    - 24.9K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/fess/helper/SystemHelper.java

            filterPathEncoding = fessConfig.getPathEncoding();
            supportedLanguages = fessConfig.getSupportedLanguagesAsArray();
            langItemsCache = CacheBuilder.newBuilder()
                    .maximumSize(20)
                    .expireAfterAccess(1, TimeUnit.HOURS)
                    .build(new CacheLoader<String, List<Map<String, String>>>() {
                        @Override
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sun Aug 31 08:19:00 UTC 2025
    - 36.6K bytes
    - Viewed (0)
  9. docs/changelogs/changelog_3x.md

        memory!
    
        The best practice in OkHttp 3 is to create a single OkHttpClient instance
        and share it throughout the application. Requests that needs a customized
        client should call `OkHttpClient.newBuilder()` on that shared instance.
        This allows customization without the drawbacks of separate connection
        pools.
    
     *  **OkHttpClient is now stateless.** In the 2.x API `OkHttpClient` had getters
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sun Feb 06 14:55:54 UTC 2022
    - 50.8K bytes
    - Viewed (0)
  10. src/main/java/org/codelibs/fess/helper/ViewHelper.java

                if (logger.isDebugEnabled()) {
                    logger.debug("loaded {}", facetQueryView);
                }
            }));
    
            facetCache = CacheBuilder.newBuilder().maximumSize(1000).expireAfterWrite(facetCacheDuration, TimeUnit.SECONDS).build();
    
            textFragmentPrefixLength = fessConfig.getQueryHighlightTextFragmentPrefixLengthAsInteger();
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Aug 07 03:06:29 UTC 2025
    - 52.4K bytes
    - Viewed (0)
Back to top