Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for AutoCloseable (1.93 sec)

  1. fess-crawler/src/main/java/org/codelibs/fess/crawler/pool/CrawlerPooledObjectFactory.java

                    // Continue with destruction even if listener fails
                }
            }
    
            // Close the object if it implements AutoCloseable or Closeable
            final T obj = p.getObject();
            if (obj instanceof AutoCloseable) {
                try {
                    ((AutoCloseable) obj).close();
                } catch (final Exception e) {
    Registered: Sat Dec 20 11:21:39 UTC 2025
    - Last Modified: Mon Nov 24 03:59:47 UTC 2025
    - 6.6K bytes
    - Viewed (0)
  2. fess-crawler/src/test/java/org/codelibs/fess/crawler/pool/CrawlerPooledObjectFactoryTest.java

            public static void resetInstanceCount() {
                instanceCount = 0;
            }
        }
    
        /**
         * Closeable test component for testing AutoCloseable resource handling
         */
        public static class CloseableTestComponent implements AutoCloseable {
            private static AtomicInteger instanceCounter = new AtomicInteger(0);
            private static AtomicInteger closeCounter = new AtomicInteger(0);
    Registered: Sat Dec 20 11:21:39 UTC 2025
    - Last Modified: Thu Nov 20 13:07:01 UTC 2025
    - 36.7K bytes
    - Viewed (0)
  3. fess-crawler/src/main/java/org/codelibs/fess/crawler/client/CrawlerClientFactory.java

    import jakarta.annotation.PostConstruct;
    import jakarta.annotation.Resource;
    
    /**
     * A factory class for managing and creating crawler clients based on URL patterns.
     * This class implements AutoCloseable to properly handle resource cleanup.
     *
     * <p>The factory maintains a map of regular expression patterns to crawler clients,
     * allowing for URL-based client selection. Clients can be added with specific patterns
    Registered: Sat Dec 20 11:21:39 UTC 2025
    - Last Modified: Mon Nov 24 03:59:47 UTC 2025
    - 7.3K bytes
    - Viewed (0)
  4. CLAUDE.md

    - `AtomicLong` for counters (`CrawlerContext.accessCount`)
    - `volatile` for status flags
    - Synchronized blocks for critical sections
    - Thread-local storage via `CrawlingParameterUtil`
    
    **Resource Management**:
    - `AutoCloseable` throughout
    - `DeferredFileOutputStream` for large responses (temp files for >1MB)
    - Connection pooling with limits
    - Background temp file deletion via `FileUtil.deleteInBackground()`
    
    **Fault Tolerance**:
    Registered: Sat Dec 20 11:21:39 UTC 2025
    - Last Modified: Fri Nov 28 17:31:34 UTC 2025
    - 10.7K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/fess/storage/StorageClient.java

    import java.util.Map;
    
    /**
     * Interface for cloud storage operations.
     * Implementations provide access to S3-compatible storage, GCS, or other cloud storage systems.
     */
    public interface StorageClient extends AutoCloseable {
    
        /**
         * Uploads an object to storage.
         *
         * @param objectName the name/path for the object
         * @param inputStream the input stream of data to upload
    Registered: Sat Dec 20 09:19:18 UTC 2025
    - Last Modified: Sat Dec 13 02:21:17 UTC 2025
    - 2.8K bytes
    - Viewed (0)
  6. fess-crawler/src/main/java/org/codelibs/fess/crawler/Crawler.java

     * including adding URLs to the queue, filtering URLs, managing crawler threads,
     * and handling the overall crawling lifecycle.
     *
     * <p>It implements the Runnable interface to be executed in a separate thread,
     * and the AutoCloseable interface to ensure resources are properly released after use.
     *
     * <p>The crawler uses several services and components, such as UrlQueueService, DataService,
    Registered: Sat Dec 20 11:21:39 UTC 2025
    - Last Modified: Mon Nov 24 03:59:47 UTC 2025
    - 17K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/fess/rank/fusion/RankFusionProcessor.java

     * It implements rank fusion techniques to combine results from different search engines
     * and provides a unified search interface.
     */
    public class RankFusionProcessor implements AutoCloseable {
    
        private static final Logger logger = LogManager.getLogger(RankFusionProcessor.class);
    
        /** Thread-safe list of rank fusion searchers available for processing search requests */
    Registered: Sat Dec 20 09:19:18 UTC 2025
    - Last Modified: Fri Nov 28 16:29:12 UTC 2025
    - 27.5K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/fess/ldap/LdapManager.java

            }
        }
    
        /**
         * A holder for the directory context.
         */
        protected class DirContextHolder implements AutoCloseable {
            private final DirContext context;
    
            private int counter = 1;
    
            /**
             * Constructs a new directory context holder.
             *
    Registered: Sat Dec 20 09:19:18 UTC 2025
    - Last Modified: Fri Nov 28 16:29:12 UTC 2025
    - 86.3K bytes
    - Viewed (0)
Back to top