Search Options

Results per page
Sort
Preferred Languages
Advance

Results 321 - 330 of 881 for execute (0.04 sec)

  1. samples/crawler/src/main/java/okhttp3/sample/Crawler.java

      }
    
      private void parallelDrainQueue(int threadCount) {
        ExecutorService executor = Executors.newFixedThreadPool(threadCount);
        for (int i = 0; i < threadCount; i++) {
          executor.execute(() -> {
            try {
              drainQueue();
            } catch (Throwable e) {
              e.printStackTrace();
            }
          });
        }
        executor.shutdown();
      }
    
      private void drainQueue() throws Exception {
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Jul 23 00:58:06 UTC 2025
    - 5K bytes
    - Viewed (0)
  2. src/main/java/org/codelibs/fess/query/QueryCommand.java

            // Default constructor
        }
    
        /**
         * Executes the query command and returns a QueryBuilder.
         * @param context The query context containing search parameters.
         * @param query The Lucene query to execute.
         * @param boost The boost factor to apply.
         * @return The executed QueryBuilder.
         */
        public abstract QueryBuilder execute(final QueryContext context, final Query query, final float boost);
    
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Aug 07 03:06:29 UTC 2025
    - 9.6K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/fess/job/impl/ScriptExecutor.java

    /**
     * This class executes a script.
     */
    public class ScriptExecutor extends JobExecutor {
    
        /**
         * Constructor.
         */
        public ScriptExecutor() {
            super();
        }
    
        @Override
        public Object execute(final String scriptType, final String script) {
            final Map<String, Object> params = new HashMap<>();
            params.put("executor", this);
    
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 1.3K bytes
    - Viewed (0)
  4. src/main/java/org/codelibs/fess/app/web/api/admin/stats/ApiAdminStatsAction.java

        //                                                                      ==============
    
        /**
         * Retrieves system statistics including JVM, OS, process, engine, and filesystem information.
         *
         * @return JSON response containing system statistics
         */
        // GET /api/admin/stats
        @Execute
        public JsonResponse<ApiResult> index() {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 19.7K bytes
    - Viewed (0)
  5. samples/guide/src/main/java/okhttp3/recipes/PostFile.java

            .url("https://api.github.com/markdown/raw")
            .post(RequestBody.create(file, MEDIA_TYPE_MARKDOWN))
            .build();
    
        try (Response response = client.newCall(request).execute()) {
          if (!response.isSuccessful()) throw new IOException("Unexpected code " + response);
    
          System.out.println(response.body().string());
        }
      }
    
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat May 25 18:02:55 UTC 2019
    - 1.5K bytes
    - Viewed (0)
  6. samples/guide/src/main/java/okhttp3/recipes/kt/DevServer.kt

          .sslSocketFactory(clientCertificates.sslSocketFactory(), clientCertificates.trustManager)
          .build()
    
      fun run() {
        try {
          val request = Request(server.url("/"))
    
          client.newCall(request).execute().use { response ->
            if (!response.isSuccessful) throw IOException("Unexpected code $response")
    
            println(response.request.url)
          }
        } finally {
          server.shutdown()
        }
      }
    }
    
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 1.9K bytes
    - Viewed (0)
  7. samples/guide/src/main/java/okhttp3/recipes/kt/ParseResponseWithMoshi.kt

      fun run() {
        val request =
          Request
            .Builder()
            .url("https://api.github.com/gists/c2a7c39532239ff261be")
            .build()
        client.newCall(request).execute().use { response ->
          if (!response.isSuccessful) throw IOException("Unexpected code $response")
    
          val gist = gistJsonAdapter.fromJson(response.body!!.source())
    
          for ((key, value) in gist!!.files!!) {
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 1.6K bytes
    - Viewed (0)
  8. fess-crawler-opensearch/src/main/java/org/codelibs/fess/crawler/service/impl/OpenSearchUrlQueueService.java

                        return builder.execute();
                    });
                    if (bulkResponse.hasFailures()) {
                        throw new OpenSearchAccessException(bulkResponse.buildFailureMessage());
                    }
    
                    final String sid = scrollId;
                    response = getClient().get(c -> c.prepareSearchScroll(sid).setScroll(new TimeValue(scrollTimeout)).execute());
    Registered: Sun Sep 21 03:50:09 UTC 2025
    - Last Modified: Thu Aug 07 02:55:08 UTC 2025
    - 17K bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/fess/suggest/converter/AnalyzerConverter.java

                        .indices()
                        .prepareAnalyze(analyzerSettings.getAnalyzerSettingsIndexName(), text)
                        .setAnalyzer(analyzerSettings.getReadingAnalyzerName(field, lang))
                        .execute()
                        .actionGet(settings.getIndicesTimeout());
    
                final AnalyzeAction.Response termResponse = client.admin()
                        .indices()
    Registered: Fri Sep 19 09:08:11 UTC 2025
    - Last Modified: Thu Aug 07 02:41:28 UTC 2025
    - 6.7K bytes
    - Viewed (0)
  10. regression-test/src/androidTest/java/okhttp/regression/IssueReproductionTest.java

      private void sendRequest(OkHttpClient client, String url) throws IOException {
        Request request = new Request.Builder()
                .url(url)
                .build();
        try (Response response = client.newCall(request).execute()) {
          assertTrue(response.code() == 200 || response.code() == 404);
          assertEquals(Protocol.HTTP_2, response.protocol());
    
          for (Certificate c: response.handshake().peerCertificates()) {
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Mon Jul 26 06:37:08 UTC 2021
    - 1.9K bytes
    - Viewed (0)
Back to top