Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 171 - 180 of 182 for newBuilder (0.06 seconds)

  1. 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 {
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Nov 28 16:29:12 GMT 2025
    - 25.4K bytes
    - Click Count (1)
  2. 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());
    
        assertThat(map.keyStrength).isEqualTo(Strength.STRONG);
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Mar 18 18:06:14 GMT 2026
    - 114.9K bytes
    - Click Count (0)
  3. compat/maven-plugin-api/src/main/java/org/apache/maven/plugin/descriptor/MojoDescriptor.java

            if (mojoDescriptorV4 == null) {
                synchronized (this) {
                    if (mojoDescriptorV4 == null) {
                        mojoDescriptorV4 = org.apache.maven.api.plugin.descriptor.MojoDescriptor.newBuilder()
                                .goal(goal)
                                .description(getDescription())
                                .implementation(getImplementation())
                                .language(getLanguage())
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Fri Jun 06 14:28:57 GMT 2025
    - 21.7K bytes
    - Click Count (0)
  4. src/main/java/org/codelibs/fess/helper/SearchLogHelper.java

        @PostConstruct
        public void init() {
            if (logger.isDebugEnabled()) {
                logger.debug("Initializing {}", this.getClass().getSimpleName());
            }
            userInfoCache = CacheBuilder.newBuilder()//
                    .maximumSize(userInfoCacheSize)//
                    .expireAfterWrite(userCheckInterval, TimeUnit.MILLISECONDS)//
                    .build(new CacheLoader<String, UserInfo>() {
                        @Override
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Mar 26 02:24:08 GMT 2026
    - 29.3K bytes
    - Click Count (0)
  5. 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
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Wed Mar 04 15:19:41 GMT 2026
    - 25.1K bytes
    - Click Count (0)
  6. 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
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Sun Feb 06 14:55:54 GMT 2022
    - 50.8K bytes
    - Click Count (0)
  7. 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
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sat Mar 28 06:59:19 GMT 2026
    - 43.2K bytes
    - Click Count (0)
  8. 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();
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Nov 28 16:29:12 GMT 2025
    - 52.6K bytes
    - Click Count (0)
  9. CHANGELOG.md

     *  New: `Cache` now has a public constructor that takes an [okio.FileSystem]. This should make it
        possible to implement decorators for cache encryption or compression.
     *  New: `Cookie.newBuilder()` to build upon an existing cookie.
     *  New: Use TLSv1.3 when running on JDK 8u261 or newer.
     *  New: `QueueDispatcher.clear()` may be used to reset a MockWebServer instance.
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Sun Feb 15 11:57:47 GMT 2026
    - 36.2K bytes
    - Click Count (2)
  10. src/main/java/org/codelibs/fess/sso/entraid/EntraIdAuthenticator.java

            if (logger.isDebugEnabled()) {
                logger.debug("Initializing {}", this.getClass().getSimpleName());
            }
            ComponentUtil.getSsoManager().register(this);
            groupCache = CacheBuilder.newBuilder().expireAfterWrite(groupCacheExpiry, TimeUnit.SECONDS).build();
        }
    
        @Override
        public LoginCredential getLoginCredential() {
            return LaRequestUtil.getOptionalRequest().map(request -> {
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sun Mar 15 08:03:27 GMT 2026
    - 56.8K bytes
    - Click Count (0)
Back to Top