Search Options

Results per page
Sort
Preferred Languages
Advance

Results 111 - 120 of 145 for listeners (0.04 sec)

  1. okhttp/src/jvmTest/kotlin/okhttp3/internal/tls/ClientAuthTest.kt

            .validityInterval(1, 2)
            .build()
        var client = buildClient(clientCert, clientIntermediateCa.certificate)
        val listener = RecordingEventListener()
        client =
          client
            .newBuilder()
            .eventListener(listener)
            .build()
        val socketFactory = buildServerSslSocketFactory()
        server.useHttps(socketFactory)
        server.requireClientAuth()
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Jun 18 12:28:21 UTC 2025
    - 12.7K bytes
    - Viewed (0)
  2. okhttp-testing-support/src/main/kotlin/okhttp3/OkHttpClientTestRule.kt

      /**
       * Returns an OkHttpClient for tests to use as a starting point.
       *
       * The returned client installs a default event listener that gathers debug information. This will
       * be logged if the test fails.
       *
       * This client is also configured to be slightly more deterministic, returning a single IP
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Fri May 30 21:28:20 UTC 2025
    - 10.5K bytes
    - Viewed (0)
  3. okhttp/src/jvmTest/kotlin/okhttp3/RouteFailureTest.kt

      @RegisterExtension
      val clientTestRule = OkHttpClientTestRule()
    
      @StartStop
      val server1 = MockWebServer()
    
      @StartStop
      val server2 = MockWebServer()
    
      private var listener = RecordingEventListener()
    
      private val handshakeCertificates = platform.localhostHandshakeCertificates()
    
      val dns = FakeDns()
    
      val ipv4 = InetAddress.getByName("203.0.113.1")
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Fri Jun 20 11:46:46 UTC 2025
    - 11.7K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/cache/CacheBuilder.java

          return ticker;
        }
        return recordsTime ? Ticker.systemTicker() : NULL_TICKER;
      }
    
      /**
       * Specifies a listener instance that caches should notify each time an entry is removed for any
       * {@linkplain RemovalCause reason}. Each cache created by this builder will invoke this listener
       * as part of the routine maintenance described in the class documentation above.
       *
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 51.7K bytes
    - Viewed (0)
  5. okhttp/src/jvmTest/kotlin/okhttp3/internal/ws/WebSocketHttpTest.kt

        serverListener.assertClosed(1000, "goodbye")
      }
    
      @Test
      fun webSocketsDontTriggerEventListener() {
        val listener = RecordingEventListener()
        client =
          client
            .newBuilder()
            .eventListenerFactory(clientTestRule.wrap(listener))
            .build()
        webServer.enqueue(
          MockResponse
            .Builder()
            .webSocketUpgrade(serverListener)
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Fri Jun 20 11:46:46 UTC 2025
    - 35.5K bytes
    - Viewed (0)
  6. okhttp/src/commonJvmAndroid/kotlin/okhttp3/WebSocket.kt

         * asynchronous process to connect the socket. Once that succeeds or fails, `listener` will be
         * notified. The caller must either close or cancel the returned web socket when it is no longer
         * in use.
         */
        fun newWebSocket(
          request: Request,
          listener: WebSocketListener,
        ): WebSocket
      }
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Fri Dec 27 13:39:56 UTC 2024
    - 5.3K bytes
    - Viewed (0)
  7. okhttp/src/jvmTest/kotlin/okhttp3/CallTest.kt

        listener.removeUpToEvent(ConnectionAcquired::class.java)
        listener.removeUpToEvent(ResponseFailed::class.java)
        listener.removeUpToEvent(ConnectionReleased::class.java)
        listener.removeUpToEvent(ConnectionAcquired::class.java)
        listener.removeUpToEvent(ConnectionReleased::class.java)
        listener.removeUpToEvent(CallEnd::class.java)
      }
    
      @Test
      fun recoverWhenRetryOnConnectionFailureIsTrue_HTTP2() {
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Thu Jul 31 04:18:40 UTC 2025
    - 146.6K bytes
    - Viewed (0)
  8. guava-gwt/src-super/com/google/common/util/concurrent/super/com/google/common/util/concurrent/ListenableFuture.java

     * For restrictions, please refer to the documentation of the then() method.
     */
    public interface ListenableFuture<V extends @Nullable Object> extends Future<V>, IThenable<V> {
      void addListener(Runnable listener, Executor executor);
    
      /** Note that this method is not expected to be overridden. */
      @JsMethod
      @Override
      default <R extends @Nullable Object> IThenable<R> then(
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Dec 22 03:38:46 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  9. src/test/java/org/codelibs/fess/job/CrawlJobTest.java

            JobExecutor mockJobExecutor = new JobExecutor() {
                @Override
                public void addShutdownListener(ShutdownListener listener) {
                    shutdownListeners.add(listener);
                }
    
                @Override
                public Object execute(String scriptType, String script) {
                    return null;
                }
            };
    
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 25K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/util/concurrent/FuturesTransformTest.java

            return RESULT_DATA;
          } else {
            throw WRAPPED_EXCEPTION;
          }
        }
      }
    
      public void testFutureGetThrowsFunctionException() throws Exception {
        inputFuture.set(EXCEPTION_DATA);
        listener.assertException(WRAPPED_EXCEPTION);
      }
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Dec 19 18:03:30 UTC 2024
    - 2K bytes
    - Viewed (0)
Back to top