Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for redact (0.02 sec)

  1. src/test/java/org/codelibs/fess/suggest/concurrent/DeferredTest.java

            Thread th = new Thread(() -> {
                try {
                    Thread.sleep(1000);
                } catch (InterruptedException ignore) {}
                deferred.reject(new Exception());
            });
            th.start();
    
            final CountDownLatch latch = new CountDownLatch(1);
            deferred.promise().error(error -> latch.countDown());
    Registered: Fri Sep 19 09:08:11 UTC 2025
    - Last Modified: Sat Mar 15 06:51:20 UTC 2025
    - 4.8K bytes
    - Viewed (0)
  2. src/main/java/org/codelibs/fess/suggest/concurrent/Deferred.java

     *   It is similar to a Promise in JavaScript.
     *   It allows you to register callbacks that will be executed when the computation is complete,
     *   either successfully (resolve) or with an error (reject).
     * </p>
     *
     * <p>
     *   The Deferred class has a Promise inner class that allows you to register callbacks
     *   to be executed when the computation is complete.
    Registered: Fri Sep 19 09:08:11 UTC 2025
    - Last Modified: Fri Jul 04 14:00:23 UTC 2025
    - 7.8K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/fess/suggest/request/popularwords/PopularWordsRequest.java

                        deferred.reject(new SuggesterException("Search failure. Failed shards num:" + searchResponse.getFailedShards()));
                    } else {
                        deferred.resolve(createResponse(searchResponse));
                    }
                }
    
                @Override
                public void onFailure(final Exception e) {
                    deferred.reject(e);
                }
            });
        }
    
    Registered: Fri Sep 19 09:08:11 UTC 2025
    - Last Modified: Thu Aug 07 02:41:28 UTC 2025
    - 9.2K bytes
    - Viewed (0)
  4. src/main/java/org/codelibs/fess/suggest/request/Request.java

            }
            return deferred.promise();
        }
    
        /**
         * Processes the request.
         * @param client The OpenSearch client.
         * @param deferred The Deferred object to resolve or reject the response.
         */
        protected abstract void processRequest(Client client, Deferred<T> deferred);
    
        /**
         * Returns a validation error message, or null if there are no errors.
    Registered: Fri Sep 19 09:08:11 UTC 2025
    - Last Modified: Fri Jul 04 14:00:23 UTC 2025
    - 2.2K bytes
    - Viewed (0)
Back to top