Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 26 for synchronized (0.07 sec)

  1. fess-crawler/src/main/java/org/codelibs/fess/crawler/helper/MemoryDataHelper.java

         * Removes the URL queue for the specified session ID.
         * @param sessionId the session ID
         */
        public synchronized void removeUrlQueueList(final String sessionId) {
            urlQueueMap.remove(sessionId);
        }
    
        /**
         * Clears all URL queues for all sessions.
         */
        public synchronized void clearUrlQueueList() {
            urlQueueMap.clear();
        }
    
        /**
    Registered: Sun Sep 21 03:50:09 UTC 2025
    - Last Modified: Sun Jul 06 02:13:03 UTC 2025
    - 8.1K bytes
    - Viewed (0)
  2. fess-crawler/src/main/java/org/codelibs/fess/crawler/util/TemporaryFileInputStream.java

         * This method delegates to {@link FileInputStream#mark(int)}.
         *
         * @param readlimit the maximum limit of bytes that can be read before the mark position becomes invalid
         */
        @Override
        public synchronized void mark(final int readlimit) {
            fileInputStream.mark(readlimit);
        }
    
        /**
         * Tests if this input stream supports the mark and reset methods.
    Registered: Sun Sep 21 03:50:09 UTC 2025
    - Last Modified: Sun Jul 06 02:13:03 UTC 2025
    - 4.3K bytes
    - Viewed (0)
  3. fess-crawler/src/main/java/org/codelibs/fess/crawler/service/impl/UrlQueueServiceImpl.java

         * java.lang.String)
         */
        @Override
        public void add(final String sessionId, final String url) {
            final Queue<UrlQueueImpl<Long>> urlQueueList = dataHelper.getUrlQueueList(sessionId);
            synchronized (urlQueueList) {
                final UrlQueueImpl<Long> urlQueue = new UrlQueueImpl<>();
                urlQueue.setSessionId(sessionId);
                urlQueue.setMethod(Constants.GET_METHOD);
                urlQueue.setUrl(url);
    Registered: Sun Sep 21 03:50:09 UTC 2025
    - Last Modified: Sun Jul 06 02:13:03 UTC 2025
    - 9.3K bytes
    - Viewed (0)
  4. fess-crawler/src/main/java/org/codelibs/fess/crawler/client/CrawlerClientCreator.java

         * Registers a CrawlerClientFactory with this creator.
         * All existing client mappings will be loaded into the new factory.
         * @param crawlerClientFactory The CrawlerClientFactory to register.
         */
        public synchronized void register(final CrawlerClientFactory crawlerClientFactory) {
            clientMap.entrySet().stream().forEach(e -> load(crawlerClientFactory, e.getKey(), e.getValue()));
            clientFactoryList.add(crawlerClientFactory);
    Registered: Sun Sep 21 03:50:09 UTC 2025
    - Last Modified: Sun Jul 06 02:13:03 UTC 2025
    - 4.5K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/fess/suggest/concurrent/Deferred.java

         * Resolves the deferred computation with the given response.
         * @param r The response.
         */
        public void resolve(final RESPONSE r) {
            final ArrayList<Consumer<RESPONSE>> executeCallbacks;
            synchronized (Deferred.this) {
                if (response != null || error != null) {
                    return;
                }
                response = r;
    
                executeCallbacks = new ArrayList<>(doneCallbacks.size());
    Registered: Fri Sep 19 09:08:11 UTC 2025
    - Last Modified: Fri Jul 04 14:00:23 UTC 2025
    - 7.8K bytes
    - Viewed (0)
  6. fess-crawler/src/main/java/org/codelibs/fess/crawler/util/IgnoreCloseInputStream.java

        /**
         * Marks the current position in this input stream.
         *
         * @param readlimit the maximum limit of bytes that can be read before the mark position becomes invalid
         */
        @Override
        public synchronized void mark(final int readlimit) {
            inputStream.mark(readlimit);
        }
    
        /**
         * Tests if this input stream supports the mark and reset methods.
         *
    Registered: Sun Sep 21 03:50:09 UTC 2025
    - Last Modified: Sun Jul 06 02:13:03 UTC 2025
    - 5.3K bytes
    - Viewed (0)
  7. src/test/java/org/codelibs/opensearch/extension/analysis/SynonymLoader.java

                lastChecked = System.currentTimeMillis();
                final long timestamp = reloadableFile.lastModified();
                if (timestamp != time) {
                    synchronized (reloadableFile) {
                        if (timestamp != lastModified) {
                            createSynonymMap(true);
                            return true;
                        }
                    }
                }
    Registered: Fri Sep 19 09:08:11 UTC 2025
    - Last Modified: Sun May 18 02:59:16 UTC 2025
    - 6.7K bytes
    - Viewed (1)
  8. fess-crawler/src/test/java/org/codelibs/fess/crawler/pool/CrawlerPooledObjectFactoryTest.java

                                TestComponent component = factory.create();
                                synchronized (createdComponents) {
                                    createdComponents.add(component);
                                }
                            }
                        } catch (Exception e) {
                            synchronized (exceptions) {
                                exceptions.add(e);
                            }
    Registered: Sun Sep 21 03:50:09 UTC 2025
    - Last Modified: Wed Sep 03 14:42:53 UTC 2025
    - 19.3K bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/fess/suggest/index/contents/document/ESSourceReader.java

            this.indexName = indexName;
            supportedFields = settings.array().get(SuggestSettings.DefaultKeys.SUPPORTED_FIELDS);
            totalDocNum = getTotal();
        }
    
        @Override
        public synchronized Map<String, Object> read() {
            while (!isFinished.get() && queue.isEmpty()) {
                addDocumentToQueue();
            }
    
            return queue.poll();
        }
    
        @Override
    Registered: Fri Sep 19 09:08:11 UTC 2025
    - Last Modified: Thu Aug 07 02:41:28 UTC 2025
    - 11K bytes
    - Viewed (0)
  10. fess-crawler/src/main/java/org/codelibs/fess/crawler/interval/impl/HostIntervalController.java

                }
                final AtomicLong lastTime = lastTimes.putIfAbsent(host, new AtomicLong(SystemUtil.currentTimeMillis()));
                if (lastTime == null) {
                    return;
                }
                synchronized (lastTime) {
                    while (true) {
                        final long currentTime = SystemUtil.currentTimeMillis();
                        final long delayTime = lastTime.get() + delayMillisBeforeProcessing - currentTime;
    Registered: Sun Sep 21 03:50:09 UTC 2025
    - Last Modified: Sun Jul 06 02:13:03 UTC 2025
    - 4.2K bytes
    - Viewed (0)
Back to top