Search Options

Results per page
Sort
Preferred Languages
Advance

Results 121 - 130 of 145 for listeners (0.06 sec)

  1. android/guava-tests/test/com/google/common/cache/CacheExpirationTest.java

        FakeTicker ticker = new FakeTicker();
        QueuingRemovalListener<Integer, Integer> listener =
            TestingRemovalListeners.queuingRemovalListener();
        Cache<Integer, Integer> cache =
            CacheBuilder.newBuilder()
                .expireAfterAccess(1, MINUTES)
                .removalListener(listener)
                .ticker(ticker)
                .build();
        cache.put(1, 1);
        ticker.advance(10, MINUTES);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Jul 16 17:42:14 UTC 2025
    - 18.7K bytes
    - Viewed (0)
  2. okhttp/src/jvmTest/kotlin/okhttp3/internal/http2/Http2ConnectionTest.kt

        pushObserver: PushObserver = IGNORE,
        listener: Http2Connection.Listener = Http2Connection.Listener.REFUSE_INCOMING_STREAMS,
      ): Http2Connection {
        val connection =
          Http2Connection
            .Builder(true, TaskRunner.INSTANCE)
            .socket(peer.openSocket().asBufferedSocket(), "peer")
            .pushObserver(pushObserver)
            .listener(listener)
            .build()
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Thu Jul 31 04:18:40 UTC 2025
    - 75.5K bytes
    - Viewed (0)
  3. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/connection/ConnectionListener.kt

     * limitations under the License.
     */
    package okhttp3.internal.connection
    
    import okhttp3.Call
    import okhttp3.Connection
    import okhttp3.Route
    import okio.IOException
    
    /**
     * Listener for connection events. Extend this class to monitor the new connections and closes.
     *
     * All event methods must execute fast, without external locking, cannot throw exceptions,
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Fri May 30 21:28:20 UTC 2025
    - 2.2K bytes
    - Viewed (0)
  4. src/test/java/org/codelibs/fess/job/PythonJobTest.java

            boolean shutdownListenerAdded = false;
    
            @Override
            public void addShutdownListener(ShutdownListener listener) {
                shutdownListenerAdded = true;
                // Optionally execute the listener to test its behavior
                listener.onShutdown();
            }
    
            @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
    - 22.1K bytes
    - Viewed (0)
  5. mockwebserver/src/main/kotlin/mockwebserver3/MockResponse.kt

         */
        public fun webSocketUpgrade(listener: WebSocketListener): Builder =
          apply {
            status = "HTTP/1.1 101 Switching Protocols"
            setHeader("Connection", "Upgrade")
            setHeader("Upgrade", "websocket")
            webSocketListener = listener
          }
    
        /**
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Fri Jun 20 11:46:46 UTC 2025
    - 17.8K bytes
    - Viewed (0)
  6. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/connection/RealConnection.kt

      private val handshake: Handshake?,
      private val protocol: Protocol,
      private val socket: BufferedSocket,
      private val pingIntervalMillis: Int,
      internal val connectionListener: ConnectionListener,
    ) : Http2Connection.Listener(),
      Connection,
      ExchangeCodec.Carrier,
      Lockable {
      private var http2Connection: Http2Connection? = null
    
      // These properties are guarded by `this`.
    
      /**
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Thu Jul 31 04:18:40 UTC 2025
    - 14.9K bytes
    - Viewed (0)
  7. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/ws/WebSocketProtocol.kt

      /**
       * Value for [B1_MASK_LENGTH] which indicates the next eight bytes are the unsigned
       * length.
       */
      internal const val PAYLOAD_LONG = 127
    
      /** Used when an unchecked exception was thrown in a listener. */
      internal const val CLOSE_CLIENT_GOING_AWAY = 1001
    
      /** Used when an empty close frame was received (i.e., without a status code). */
      internal const val CLOSE_NO_STATUS_CODE = 1005
    
      fun toggleMask(
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 4.8K bytes
    - Viewed (0)
  8. okhttp/src/jvmTest/kotlin/okhttp3/internal/ws/WebSocketRecorder.kt

      private val name: String,
    ) : WebSocketListener() {
      private val events = LinkedBlockingQueue<Any>()
      private var delegate: WebSocketListener? = null
    
      /** Sets a delegate for handling the next callback to this listener. Cleared after invoked.  */
      fun setNextEventDelegate(delegate: WebSocketListener?) {
        this.delegate = delegate
      }
    
      override fun onOpen(
        webSocket: WebSocket,
        response: Response,
      ) {
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 6.8K bytes
    - Viewed (0)
  9. src/test/java/org/codelibs/fess/job/SuggestJobTest.java

            private boolean hasShutdownListener = false;
    
            @Override
            public void addShutdownListener(ShutdownListener listener) {
                hasShutdownListener = true;
                super.addShutdownListener(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
    - 31.4K bytes
    - Viewed (0)
  10. mockwebserver/src/main/kotlin/mockwebserver3/MockWebServer.kt

            val connection =
              Http2Connection
                .Builder(false, taskRunner)
                .socket(socket, socket.javaNetSocket.remoteSocketAddress.toString())
                .listener(http2SocketHandler)
                .build()
            connection.start()
            openConnections.add(connection)
            openClientSockets.remove(socket.javaNetSocket)
            return
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Aug 02 20:36:00 UTC 2025
    - 40.3K bytes
    - Viewed (0)
Back to top