Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 21 for offered (0.04 seconds)

  1. src/test/java/org/codelibs/fess/helper/LogNotificationHelperTest.java

        }
    
        @Test
        public void test_offer_and_drainAll() {
            LogNotificationHelper helper = new LogNotificationHelper();
            helper.offer(new LogNotificationEvent(1000L, "ERROR", "com.example.Foo", "message1", "throwable1"));
            helper.offer(new LogNotificationEvent(2000L, "WARN", "com.example.Bar", "message2", null));
    
            List<LogNotificationEvent> events = helper.drainAll();
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Mar 26 02:24:08 GMT 2026
    - 6.3K bytes
    - Click Count (0)
  2. src/main/java/org/codelibs/fess/helper/LogNotificationHelper.java

                maxBufferSize = 1000;
            }
            queue.offer(event);
            if (size.incrementAndGet() > maxBufferSize) {
                if (queue.poll() != null) {
                    size.decrementAndGet();
                }
            }
        }
    
        /**
         * Drains all events from the buffer and returns them as a list.
         *
         * @return a list of all buffered events
         */
        public List<LogNotificationEvent> drainAll() {
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Mar 26 02:24:08 GMT 2026
    - 5.3K bytes
    - Click Count (0)
  3. src/main/java/org/codelibs/fess/timer/LogNotificationTarget.java

    import org.codelibs.fess.util.ComponentUtil;
    import org.opensearch.action.bulk.BulkRequestBuilder;
    import org.opensearch.action.bulk.BulkResponse;
    
    /**
     * A timer target that periodically flushes buffered log notification events
     * to an OpenSearch index for downstream processing.
     */
    public class LogNotificationTarget implements TimeoutTarget {
    
        /**
         * Default constructor.
         */
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Mar 26 02:24:08 GMT 2026
    - 4.5K bytes
    - Click Count (0)
  4. src/test/java/org/codelibs/fess/thumbnail/ThumbnailManagerTest.java

            Map<String, Object> docMap = new HashMap<>();
            docMap.put("_id", "docid1");
            docMap.put("url", "http://example.com");
    
            boolean result = thumbnailManager.offer(docMap);
            assertTrue(result);
        }
    
        // Test offer with no matching generator
        @Test
        public void test_offer_noMatchingGenerator() {
            TestThumbnailGenerator generator = new TestThumbnailGenerator();
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 20.4K bytes
    - Click Count (0)
  5. src/test/java/org/codelibs/fess/timer/LogNotificationTargetTest.java

            // Add events to buffer
            ComponentUtil.getLogNotificationHelper()
                    .offer(new LogNotificationEvent(System.currentTimeMillis(), "ERROR", "org.test", "msg1", null));
            ComponentUtil.getLogNotificationHelper()
                    .offer(new LogNotificationEvent(System.currentTimeMillis(), "WARN", "org.test", "msg2", null));
    
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Mar 26 02:24:08 GMT 2026
    - 4.7K bytes
    - Click Count (0)
  6. src/main/java/org/codelibs/fess/helper/RelatedQueryHelper.java

            }
            load();
        }
    
        /**
         * Retrieves a list of all available related query entities from the data store.
         * The results are ordered by term and limited by the configured maximum fetch size.
         *
         * @return a list of RelatedQuery entities containing all available related queries
         */
        public List<RelatedQuery> getAvailableRelatedQueryList() {
    
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Nov 28 16:29:12 GMT 2025
    - 5.1K bytes
    - Click Count (0)
  7. src/main/java/org/codelibs/fess/thumbnail/ThumbnailManager.java

                logger.warn("Failed to create thumbnail for {}", entity, e);
            }
        }
    
        /**
         * Offers a document for thumbnail generation.
         *
         * @param docMap the document data map
         * @return true if the task was successfully added to the queue
         */
        public boolean offer(final Map<String, Object> docMap) {
            for (final ThumbnailGenerator generator : generatorList) {
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Jan 01 12:47:47 GMT 2026
    - 27.2K bytes
    - Click Count (0)
  8. src/main/java/org/codelibs/fess/ds/callback/FileListIndexUpdateCallbackImpl.java

                long counter = 0;
                final Deque<CrawlRequest> requestQueue = new LinkedList<>();
                final Set<String> processedUrls = new HashSet<>();
                requestQueue.offer(new CrawlRequest(url, 0));
                while (!requestQueue.isEmpty() && (maxAccessCount < 0 || counter < maxAccessCount)) {
                    final CrawlRequest crawlRequest = requestQueue.poll();
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Nov 28 16:29:12 GMT 2025
    - 29.7K bytes
    - Click Count (3)
  9. README.md

    ---
    
    ### 💬 **Community Support & Resources**
    
    The Gradle community offers a range of forums, documentation, and direct help to guide you through every step of your Gradle journey:
    
    Created: Wed Apr 01 11:36:16 GMT 2026
    - Last Modified: Thu Feb 12 18:58:41 GMT 2026
    - 7.8K bytes
    - Click Count (0)
  10. architecture/standards/0002-avoid-using-java-serialization.md

    - **Size of Serialized Data:**
    Java serialization tends to produce larger serialized objects because it includes class metadata and other overhead.
    
    - **Flexibility and Control:**
    Java serialization offers limited control over the serialization process, such as excluding certain fields, customizing naming conventions, and handling complex data structures more gracefully.
    
    - **Security:**
    Created: Wed Apr 01 11:36:16 GMT 2026
    - Last Modified: Thu Mar 05 14:05:45 GMT 2026
    - 2.3K bytes
    - Click Count (0)
Back to Top