Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 46 for deferred (0.04 sec)

  1. src/main/java/org/codelibs/fess/suggest/concurrent/Deferred.java

    import org.codelibs.fess.suggest.request.Response;
    
    /**
     * <p>
     *   Deferred is a class that represents a deferred computation.
     *   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
    Registered: Fri Sep 19 09:08:11 UTC 2025
    - Last Modified: Fri Jul 04 14:00:23 UTC 2025
    - 7.8K bytes
    - Viewed (0)
  2. src/test/java/org/codelibs/fess/suggest/concurrent/DeferredTest.java

            deferred.promise().then(response -> latch.countDown());
            assertTrue(latch.await(10, TimeUnit.SECONDS));
        }
    
        @Test
        public void test_doneAfterResolve() throws Exception {
            final Deferred<SuggestResponse> deferred = new Deferred<>();
    
            Thread th = new Thread(() -> {
                deferred.resolve(new SuggestResponse("", 0, Collections.emptyList(), 0, null));
    Registered: Fri Sep 19 09:08:11 UTC 2025
    - Last Modified: Sat Mar 15 06:51:20 UTC 2025
    - 4.8K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/fess/suggest/request/Request.java

         */
        public Deferred<T>.Promise execute(final Client client) {
            final String error = getValidationError();
            if (!Strings.isNullOrEmpty(error)) {
                throw new IllegalArgumentException(error);
            }
    
            final Deferred<T> deferred = new Deferred<>();
            try {
                processRequest(client, deferred);
            } catch (final Exception e) {
    Registered: Fri Sep 19 09:08:11 UTC 2025
    - Last Modified: Fri Jul 04 14:00:23 UTC 2025
    - 2.2K bytes
    - Viewed (0)
  4. 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)
  5. src/main/java/org/codelibs/fess/suggest/request/RequestBuilder.java

     * either express or implied. See the License for the specific language
     * governing permissions and limitations under the License.
     */
    package org.codelibs.fess.suggest.request;
    
    import org.codelibs.fess.suggest.concurrent.Deferred;
    import org.opensearch.transport.client.Client;
    
    /**
     * An abstract class that serves as a builder for creating and executing requests.
     *
     * @param <Req> the type of the request
    Registered: Fri Sep 19 09:08:11 UTC 2025
    - Last Modified: Fri Jul 04 14:00:23 UTC 2025
    - 1.6K bytes
    - Viewed (0)
  6. api/maven-api-cli/src/main/java/org/apache/maven/api/cli/logging/package-info.java

     *
     * <p>This package includes:</p>
     * <ul>
     *   <li>Basic logging interfaces and implementations</li>
     *   <li>Support for different logging levels (DEBUG, INFO, WARN, ERROR)</li>
     *   <li>Accumulating loggers for deferred output</li>
     * </ul>
     *
     * @since 4.0.0
     */
    Registered: Sun Sep 07 03:35:12 UTC 2025
    - Last Modified: Tue Mar 04 14:17:18 UTC 2025
    - 1.3K bytes
    - Viewed (0)
  7. okhttp/src/androidMain/kotlin/okhttp3/internal/platform/android/DeferredSocketAdapter.kt

     * limitations under the License.
     */
    package okhttp3.internal.platform.android
    
    import javax.net.ssl.SSLSocket
    import okhttp3.Protocol
    
    /**
     * Deferred implementation of SocketAdapter that works by observing the socket
     * and initializing on first use.
     *
     * We use this because eager classpath checks cause confusion and excessive logging in Android,
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 2.1K bytes
    - Viewed (0)
  8. okhttp/src/jvmTest/kotlin/okhttp3/FakeRoutePlanner.kt

      fun addPlan(): FakePlan =
        FakePlan(nextPlanId++).also {
          plans += it
        }
    
      override fun isCanceled() = canceled
    
      override fun plan(): FakePlan {
        // Return deferred plans preferentially. These don't require addPlan().
        if (deferredPlans.isNotEmpty()) return deferredPlans.removeFirst() as FakePlan
    
        if (nextPlanIndex >= plans.size && autoGeneratePlans) addPlan()
    
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 6.1K bytes
    - Viewed (0)
  9. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/connection/FastFallbackExchangeFinder.kt

              } else {
                firstException.addSuppressed(throwable)
              }
            }
    
            val nextPlan = connectResult.nextPlan
            if (nextPlan != null) {
              // Try this plan's successor before deferred plans because it won the race!
              routePlanner.deferredPlans.addFirst(nextPlan)
            }
          }
        } finally {
          cancelInFlightConnects()
        }
    
        throw firstException!!
      }
    
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Fri Dec 27 13:39:56 UTC 2024
    - 5.8K bytes
    - Viewed (0)
  10. api/maven-api-cli/src/main/java/org/apache/maven/api/cli/mvn/MavenOptions.java

        Optional<Boolean> failFast();
    
        /**
         * Indicates whether Maven should run all builds but defer error reporting to the end.
         *
         * @return an {@link Optional} containing true if error reporting should be deferred to the end, false if not, or empty if not specified
         */
        @Nonnull
        Optional<Boolean> failAtEnd();
    
        /**
         * Indicates whether Maven should never fail the build, regardless of project result.
    Registered: Sun Sep 07 03:35:12 UTC 2025
    - Last Modified: Wed Jun 11 13:14:09 UTC 2025
    - 8K bytes
    - Viewed (0)
Back to top