Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 371 - 380 of 495 for callbacks (0.06 seconds)

  1. docs/recipes.md

            }
          }
        ```
    
    ### Asynchronous Get ([.kt][AsynchronousGetKotlin], [.java][AsynchronousGetJava])
    
    Download a file on a worker thread, and get called back when the response is readable. The callback is made after the response headers are ready. Reading the response body may still block. OkHttp doesn't currently offer asynchronous APIs to receive a response body in parts.
    
    === ":material-language-kotlin: Kotlin"
        ```kotlin
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Sun Mar 15 09:01:42 GMT 2026
    - 47.8K bytes
    - Click Count (0)
  2. src/main/assemblies/files/service.bat

    	goto foundJVM
    )
    
    rem Check 'server' JRE (JRE installed on Windows Server)
    if exist "%JAVA_HOME%"\bin\server\jvm.dll (
    	set JVM_DLL=\bin\server\jvm.dll
    	goto foundJVM
    )
    
    rem Fallback to 'client' JRE
    if exist "%JAVA_HOME%"\bin\client\jvm.dll (
    	set JVM_DLL=\bin\client\jvm.dll
    	echo Warning: JAVA_HOME points to a JRE and not JDK installation; a client (not a server^) JVM will be used...
    ) else (
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sun Jan 15 06:32:15 GMT 2023
    - 6K bytes
    - Click Count (0)
  3. src/main/java/org/codelibs/fess/api/chat/ChatApiManager.java

                request.setAttribute(Constants.SEARCH_LOG_ACCESS_TYPE,
                        ComponentUtil.getFessConfig().getSystemProperty("rag.llm.name", "ollama"));
    
                // Create phase callback for SSE events
                final ChatPhaseCallback phaseCallback = new ChatPhaseCallback() {
                    @Override
                    public void onPhaseStart(final String phase, final String phaseMessage) {
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Mar 26 06:06:55 GMT 2026
    - 25.8K bytes
    - Click Count (0)
  4. okhttp/src/jvmTest/kotlin/okhttp3/FastFallbackTest.kt

          )
    
        client =
          clientTestRule
            .newClientBuilder()
            .eventListenerFactory(clientTestRule.wrap(eventRecorder))
            .connectTimeout(60, TimeUnit.SECONDS) // Deliberately exacerbate slow fallbacks.
            .dns { dnsResults }
            .fastFallback(true)
            .build()
        url =
          serverIpv4
            .url("/")
            .newBuilder()
            .host("localhost")
            .build()
      }
    
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Tue Nov 04 19:13:52 GMT 2025
    - 10.6K bytes
    - Click Count (0)
  5. okhttp/src/commonJvmAndroid/kotlin/okhttp3/WebSocket.kt

     * initiate a graceful shutdown (close code 1001) and `send()` will return `false`. No exception is
     * thrown and no [WebSocketListener.onFailure] callback is triggered, so callers should always check
     * the return value of `send()`.
     *
     * Use [queueSize] to monitor backpressure before sending. For large payloads, consider breaking
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Tue Mar 10 21:45:14 GMT 2026
    - 6.1K bytes
    - Click Count (0)
  6. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/ws/RealWebSocket.kt

    import java.net.SocketTimeoutException
    import java.util.ArrayDeque
    import java.util.Random
    import java.util.concurrent.TimeUnit
    import java.util.concurrent.TimeUnit.MILLISECONDS
    import okhttp3.Call
    import okhttp3.Callback
    import okhttp3.EventListener
    import okhttp3.OkHttpClient
    import okhttp3.Protocol
    import okhttp3.Request
    import okhttp3.Response
    import okhttp3.WebSocket
    import okhttp3.WebSocketListener
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Thu Jul 31 04:18:40 GMT 2025
    - 21.6K bytes
    - Click Count (0)
  7. src/test/resources/thumbnail/test_generate_thumbnail.sh

        echo -e "${GREEN}PASSED${NC}"
        ((TESTS_PASSED++))
    else
        echo -e "${RED}FAILED${NC}"
        ((TESTS_FAILED++))
    fi
    
    echo -n "Testing: convert command fallback... "
    if grep -q 'command -v convert' "${GENERATE_THUMBNAIL}"; then
        echo -e "${GREEN}PASSED${NC}"
        ((TESTS_PASSED++))
    else
        echo -e "${RED}FAILED${NC}"
        ((TESTS_FAILED++))
    fi
    
    echo ""
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Dec 04 08:02:36 GMT 2025
    - 7.9K bytes
    - Click Count (0)
  8. src/test/java/org/codelibs/fess/helper/CrawlingInfoHelperTest.java

        }
    
        @Test
        public void test_getDocumentExpires() {
            // Test with null config
            assertNull(crawlingInfoHelper.getDocumentExpires(null));
    
            // Test with documentExpires field set (fallback behavior)
            final long currentTime = 1704067200000L; // 2024-01-01 00:00:00 UTC
            ComponentUtil.register(new SystemHelper() {
                @Override
                public long getCurrentTimeAsLong() {
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Mar 12 01:46:45 GMT 2026
    - 28.7K bytes
    - Click Count (0)
  9. src/main/java/jcifs/audit/SecurityAuditLogger.java

                // Process asynchronously or synchronously based on configuration
                if (asyncLogging && !shutdown) {
                    if (!logQueue.offer(entry)) {
                        // Queue is full, log synchronously as fallback
                        processLogEntry(entry);
                        returnAuditEntry(entry);
                    }
                } else {
                    processLogEntry(entry);
                    returnAuditEntry(entry);
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 30 05:58:03 GMT 2025
    - 26.6K bytes
    - Click Count (0)
  10. android/guava/src/com/google/common/util/concurrent/AggregateFutureState.java

          // Some Android 5.0.x Samsung devices have bugs in JDK reflection APIs that cause
          // getDeclaredField to throw a NoSuchFieldException when the field is definitely there.
          // For these users fallback to a suboptimal implementation, based on synchronized. This will
          // be a definite performance hit to those users.
          thrownReflectionFailure = reflectionFailure;
          helper = new SynchronizedAtomicHelper();
        }
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Aug 07 16:05:33 GMT 2025
    - 8.5K bytes
    - Click Count (0)
Back to Top