Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 22 for promise (0.03 sec)

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

                deferred.resolve(new SuggestResponse("", 0, Collections.emptyList(), 0, null));
            });
            th.start();
    
            final CountDownLatch latch = new CountDownLatch(1);
            deferred.promise().then(response -> latch.countDown());
            assertTrue(latch.await(10, TimeUnit.SECONDS));
        }
    
        @Test
        public void test_doneAfterResolve() throws Exception {
    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

        }
    
        /**
         * Returns the promise.
         * @return The promise.
         */
        public Promise promise() {
            return promise;
        }
    
        /**
         * The promise.
         */
        public class Promise {
            /**
             * Constructs a new Promise object.
             */
            public Promise() {
                // nothing
            }
    
            /**
    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/RequestBuilder.java

            this.client = client;
            this.request = request;
        }
    
        /**
         * Executes the request.
         * @return A Promise that will be resolved with the response or rejected with an error.
         */
        public Deferred<Res>.Promise execute() {
            return request.execute(client);
        }
    Registered: Fri Sep 19 09:08:11 UTC 2025
    - Last Modified: Fri Jul 04 14:00:23 UTC 2025
    - 1.6K bytes
    - Viewed (0)
  4. src/main/java/org/codelibs/fess/suggest/request/Request.java

         */
        public Request() {
            // nothing
        }
    
        /**
         * Executes the request.
         * @param client The OpenSearch client.
         * @return A Promise that will be resolved with the response or rejected with an error.
         */
        public Deferred<T>.Promise execute(final Client client) {
            final String error = getValidationError();
            if (!Strings.isNullOrEmpty(error)) {
    Registered: Fri Sep 19 09:08:11 UTC 2025
    - Last Modified: Fri Jul 04 14:00:23 UTC 2025
    - 2.2K bytes
    - Viewed (0)
  5. fess-crawler/src/test/resources/ajax/js/jquery-2.1.1.min.js

    on(){var a=arguments;return n.Deferred(function(c){n.each(b,function(b,f){var g=n.isFunction(a[b])&&a[b];e[f[1]](function(){var a=g&&g.apply(this,arguments);a&&n.isFunction(a.promise)?a.promise().done(c.resolve).fail(c.reject).progress(c.notify):c[f[0]+"With"](this===d?c.promise():this,g?[a]:arguments)})}),a=null}).promise()},promise:function(a){return null!=a?n.extend(a,d):d}},e={};return d.pipe=d.then,n.each(b,function(a,f){var g=f[2],h=f[3];d[f[1]]=g.add,h&&g.add(function(){c=h},b[1^a][2].dis...
    Registered: Sun Sep 21 03:50:09 UTC 2025
    - Last Modified: Sun Oct 11 02:16:55 UTC 2015
    - 82.3K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/fess/suggest/index/SuggestIndexer.java

         * @param docPerReq The number of documents to process per request.
         * @param requestInterval The interval between requests.
         * @return A Promise that will be resolved with the SuggestIndexResponse or rejected with an error.
         */
        public Deferred<SuggestIndexResponse>.Promise indexFromQueryLog(final QueryLogReader queryLogReader, final int docPerReq,
                final long requestInterval) {
    Registered: Fri Sep 19 09:08:11 UTC 2025
    - Last Modified: Thu Aug 07 02:41:28 UTC 2025
    - 34.8K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/fess/suggest/normalizer/Normalizer.java

     * governing permissions and limitations under the License.
     */
    package org.codelibs.fess.suggest.normalizer;
    
    /**
     * An interface for normalizing text.
     * Implementations of this interface should provide a method to normalize
     * a given text based on the specified field and optional language parameters.
     */
    public interface Normalizer {
        /**
         * Normalizes the given text.
         * @param text The text to normalize
    Registered: Fri Sep 19 09:08:11 UTC 2025
    - Last Modified: Fri Jul 04 14:00:23 UTC 2025
    - 1.1K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/fess/suggest/index/contents/document/DocumentReader.java

    import java.io.Closeable;
    import java.util.Map;
    
    /**
     * Interface for reading documents and extracting their contents into a map.
     * Implementations of this interface should provide the logic for reading
     * documents and converting them into a key-value structure.
     *
     * <p>This interface extends {@link java.io.Closeable}, so implementations
    Registered: Fri Sep 19 09:08:11 UTC 2025
    - Last Modified: Fri Jul 04 14:00:23 UTC 2025
    - 1.4K bytes
    - Viewed (0)
  9. fess-crawler/src/main/java/org/codelibs/fess/crawler/rule/Rule.java

    import org.codelibs.fess.crawler.processor.ResponseProcessor;
    
    /**
     * The Rule interface defines the contract for implementing rules that can be applied to
     * response data in a web crawler. Implementations of this interface should provide logic
     * to determine if a given response data matches the rule, retrieve the rule's identifier,
     * and obtain the associated response processor.
     */
    public interface Rule extends Serializable {
    
        /**
    Registered: Sun Sep 21 03:50:09 UTC 2025
    - Last Modified: Sat Mar 15 06:52:00 UTC 2025
    - 1.7K bytes
    - Viewed (0)
  10. src/main/java/org/codelibs/fess/suggest/request/Response.java

     * in the suggestion system. Implementations of this interface are used to
     * encapsulate the results of various operations and queries within the system.
     *
     * <p>Classes implementing this interface should provide specific details and
     * data relevant to the type of response they represent.</p>
     */
    public interface Response {
    Registered: Fri Sep 19 09:08:11 UTC 2025
    - Last Modified: Sat Mar 15 06:51:20 UTC 2025
    - 1.1K bytes
    - Viewed (0)
Back to top