Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 861 - 870 of 1,428 for handle_ (0.05 seconds)

  1. okhttp-testing-support/src/main/kotlin/okhttp3/internal/duplex/MockSocketHandler.kt

          actions += { stream -> stream.sink.close() }
        }
    
      fun sleep(
        duration: Long,
        unit: TimeUnit,
      ) = apply {
        actions += { Thread.sleep(unit.toMillis(duration)) }
      }
    
      override fun handle(socket: Socket) {
        val task = serviceSocketTask(socket.asBufferedSocket())
        results.add(task)
        task.run()
      }
    
      /** Returns a task that processes both request and response from [socket]. */
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Thu Jul 31 04:18:40 GMT 2025
    - 3.3K bytes
    - Click Count (0)
  2. samples/guide/src/main/java/okhttp3/recipes/RequestBodyCompression.java

        }
      }
    
      public static void main(String... args) throws Exception {
        new RequestBodyCompression().run();
      }
    
      /** This interceptor compresses the HTTP request body. Many webservers can't handle this! */
      static class GzipRequestInterceptor implements Interceptor {
        @Override public Response intercept(Chain chain) throws IOException {
          Request originalRequest = chain.request();
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Wed Jun 04 17:43:43 GMT 2025
    - 3.1K bytes
    - Click Count (0)
  3. android/guava/src/com/google/common/base/SneakyThrows.java

      /**
       * Throws {@code t} as if it were an unchecked {@link Throwable}.
       *
       * <p>This method is useful primarily when we make a reflective call to a method with no {@code
       * throws} clause: Java forces us to handle an arbitrary {@link Throwable} from that method,
       * rather than just the {@link RuntimeException} or {@link Error} that should be possible. (And in
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Feb 03 21:52:39 GMT 2025
    - 2.4K bytes
    - Click Count (0)
  4. src/test/java/jcifs/smb/MultiChannelManagerBasicTest.java

            assertTrue(cause instanceof CIFSException);
            assertTrue(cause.getMessage().contains("Failed to create multi-channel transport"));
        }
    
        @Test
        @DisplayName("createChannelTransport should handle localhost addresses")
        void testCreateChannelTransportWithLocalhostAddresses() throws Exception {
            InetAddress localhost = InetAddress.getLocalHost();
            InetAddress loopback = InetAddress.getLoopbackAddress();
    
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sun Aug 31 08:00:57 GMT 2025
    - 4K bytes
    - Click Count (0)
  5. android/guava/src/com/google/common/io/ReaderInputStream.java

     *
     * <p>This is an alternative to copying the data to an {@code OutputStream} via a {@code Writer},
     * which is necessarily blocking. By implementing an {@code InputStream} it allows consumers to
     * "pull" as much data as they can handle, which is more convenient when dealing with flow
     * controlled, async APIs.
     *
     * @author Chris Nokleberg
     */
    @J2ktIncompatible
    @GwtIncompatible
    final class ReaderInputStream extends InputStream {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Apr 14 16:36:11 GMT 2025
    - 9.3K bytes
    - Click Count (0)
  6. src/test/java/jcifs/dcerpc/msrpc/MsrpcLookupSidsTest.java

            // Act
            lookupSids = new MsrpcLookupSids(mockPolicyHandle, testSids);
    
            // Assert using reflection to verify superclass fields
            Field handleField = lsarpc.LsarLookupSids.class.getDeclaredField("handle");
            handleField.setAccessible(true);
            assertSame(mockPolicyHandle, handleField.get(lookupSids));
    
            Field countField = lsarpc.LsarLookupSids.class.getDeclaredField("count");
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 12.6K bytes
    - Click Count (0)
  7. src/main/java/jcifs/util/SimpleCircuitBreaker.java

                    }
                    // Another thread changed the state, re-evaluate
                    return state.get();
                }
            }
    
            return current;
        }
    
        /**
         * Handle successful call
         */
        private void onSuccess() {
            totalSuccesses.incrementAndGet();
            consecutiveFailures.set(0);
    
            State current = state.get();
    
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 30 05:58:03 GMT 2025
    - 11.3K bytes
    - Click Count (0)
  8. api/maven-api-core/src/main/java/org/apache/maven/api/services/Request.java

     *   <li>Audit logging of operations</li>
     *   <li>Performance monitoring of nested operations</li>
     * </ul>
     *
     * <p>This interface is designed to be extended by specific request types that handle
     * different Maven operations. All implementations must be immutable to ensure thread safety
     * and predictable behavior in concurrent environments.
     *
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Fri Feb 07 00:45:02 GMT 2025
    - 4K bytes
    - Click Count (0)
  9. impl/maven-cli/src/test/java/org/apache/maven/cling/transfer/ConsoleMavenTransferListenerTest.java

                    resource.setContentLength(size - 1);
    
                    DefaultRepositorySystemSession session =
                            new DefaultRepositorySystemSession(h -> false); // no close handle
    
                    // warm up
                    test(listener, session, resource, 0);
    
                    for (int i = 1; i < size; i++) {
                        final int bytes = i;
    
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Fri Mar 21 04:56:21 GMT 2025
    - 5.6K bytes
    - Click Count (0)
  10. src/test/java/org/codelibs/fess/crawler/serializer/DataSerializerTest.java

            List<String> deserializedList = (List<String>) deserialized;
            assertEquals("Large list size should match", original.size(), deserializedList.size());
        }
    
        /**
         * Test that serializer handles special characters correctly
         */
        @Test
        public void test_serializeDeserialize_specialCharacters() {
            String original = "Special: !@#$%^&*(){}[]<>?/\\|~`±§";
    
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Wed Jan 14 14:29:07 GMT 2026
    - 21.6K bytes
    - Click Count (0)
Back to Top