Search Options

Results per page
Sort
Preferred Languages
Advance

Results 151 - 160 of 167 for NewBuilder (0.1 sec)

  1. 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 Oct 31 13:40:30 UTC 2024
    - Last Modified: Mon Jul 22 02:07:37 UTC 2024
    - 21.7K bytes
    - Viewed (0)
  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());
    
        assertSame(Strength.STRONG, map.keyStrength);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 19:07:49 UTC 2024
    - 110.6K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/fess/helper/PluginHelper.java

    public class PluginHelper {
        private static final Logger logger = LogManager.getLogger(PluginHelper.class);
    
        protected LoadingCache<ArtifactType, Artifact[]> availableArtifacts = CacheBuilder.newBuilder().maximumSize(10)
                .expireAfterWrite(5, TimeUnit.MINUTES).build(new CacheLoader<ArtifactType, Artifact[]>() {
                    @Override
                    public Artifact[] load(final ArtifactType key) {
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Oct 24 01:47:10 UTC 2024
    - 17.8K bytes
    - Viewed (0)
  4. fess-crawler/src/main/java/org/codelibs/fess/crawler/transformer/impl/XmlTransformer.java

        protected LoadingCache<String, XPathAPI> xpathAPICache;
    
        protected long cacheDuration = 10; // min
    
        @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 Nov 10 03:50:12 UTC 2024
    - Last Modified: Sat Oct 12 01:41:37 UTC 2024
    - 17.9K bytes
    - Viewed (0)
  5. 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())
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 21.7K bytes
    - Viewed (0)
  6. 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 Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Oct 17 12:10:08 UTC 2024
    - 27.2K bytes
    - Viewed (0)
  7. compat/maven-model-builder/src/main/java/org/apache/maven/model/building/DefaultModelBuilder.java

                    });
                }
    
                @Override
                public org.apache.maven.api.model.Profile apply(org.apache.maven.api.model.Profile p) {
                    return org.apache.maven.api.model.Profile.newBuilder(p)
                            .activation(transformActivation(p.getActivation()))
                            .build();
                }
    
                @Override
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 83.6K bytes
    - Viewed (0)
  8. okhttp/src/main/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 Nov 01 11:42:11 UTC 2024
    - Last Modified: Sat Apr 06 04:12:05 UTC 2024
    - 23.1K bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/fess/sso/aad/AzureAdAuthenticator.java

            if (logger.isDebugEnabled()) {
                logger.debug("Initialize {}", this.getClass().getSimpleName());
            }
            ComponentUtil.getSsoManager().register(this);
            groupCache = CacheBuilder.newBuilder().expireAfterWrite(groupCacheExpiry, TimeUnit.SECONDS).build();
        }
    
        @Override
        public LoginCredential getLoginCredential() {
            return LaRequestUtil.getOptionalRequest().map(request -> {
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:53:18 UTC 2024
    - 28.2K bytes
    - Viewed (0)
  10. mockwebserver/src/main/kotlin/mockwebserver3/MockWebServer.kt

        source: BufferedSource,
        sink: BufferedSink,
        request: RecordedRequest,
        response: MockResponse,
      ) {
        val key = request.headers["Sec-WebSocket-Key"]
        val webSocketResponse =
          response.newBuilder()
            .setHeader("Sec-WebSocket-Accept", WebSocketProtocol.acceptHeader(key!!))
            .build()
        writeHttpResponse(socket, sink, webSocketResponse)
    
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sun Mar 31 17:16:15 UTC 2024
    - 37.4K bytes
    - Viewed (0)
Back to top