Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 211 - 220 of 441 for Sleeps (0.05 seconds)

  1. src/test/java/jcifs/internal/smb1/com/SmbComNTCreateAndXTest.java

            assertTrue(str.contains("securityFlags=0x03"), "securityFlags should be present");
        }
    
        /**
         * Fetch a private field value via reflection.  This helper keeps the
         * test code tidy and is used where unit‑testing logic relies on
         * internally stored data.
         */
        private static Object getPrivateField(Object target, String name) {
            try {
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 5.6K bytes
    - Click Count (0)
  2. guava-testlib/src/com/google/common/collect/testing/testers/ListAddAtIndexTester.java

      }
    
      @ListFeature.Require(absent = SUPPORTS_ADD_WITH_INDEX)
      @CollectionSize.Require(absent = ZERO)
      /*
       * absent = ZERO isn't required, since unmodList.add() must
       * throw regardless, but it keeps the method name accurate.
       */
      public void testAddAtIndex_unsupportedPresent() {
        assertThrows(UnsupportedOperationException.class, () -> getList().add(0, e0()));
        expectUnchanged();
      }
    
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Thu Aug 07 16:05:33 GMT 2025
    - 5.5K bytes
    - Click Count (0)
  3. build-logic/kotlin-dsl-shared-runtime/src/main/kotlin/org/gradle/kotlin/dsl/internal/sharedruntime/support/ClassBytesRepository.kt

    private
    typealias ClassBytesIndex = (String) -> ClassBytesSupplier?
    
    
    /**
     * Repository providing access to class bytes by Kotlin source names.
     *
     * Follows the one directory per package name segment convention.
     * Keeps JAR files open for fast lookup, must be closed.
     *
     * Always include the current JVM platform loader for which no JAR file can be held open.
     */
    class ClassBytesRepository(
        platformClassLoader: ClassLoader,
    Created: Wed Dec 31 11:36:14 GMT 2025
    - Last Modified: Fri Jun 28 08:29:28 GMT 2024
    - 6.3K bytes
    - Click Count (0)
  4. docs/smb3-features/02-persistent-handles-design.md

            }
            
            return CompletableFuture.supplyAsync(() -> {
                try {
                    // Wait before retry (except first attempt)
                    if (attempt > 0) {
                        Thread.sleep(retryDelay * attempt);
                    }
                    
                    // Create reconnect context
                    DurableHandleReconnect reconnectCtx = 
                        new DurableHandleReconnect(info.fileId);
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Sat Aug 16 02:53:50 GMT 2025
    - 31.6K bytes
    - Click Count (0)
  5. src/main/java/org/codelibs/core/timer/TimeoutManager.java

                while (!isInterrupted() && !stopIfLeisure()) {
                    for (final TimeoutTask task : getExpiredTask()) {
                        processTask(executorService, task);
                    }
                    Thread.sleep(1000L);
                }
            } catch (final InterruptedException e) {
                if (logger.isDebugEnabled()) {
                    logger.debug("Interrupted.", e);
                }
            } finally {
    Created: Sat Dec 20 08:55:33 GMT 2025
    - Last Modified: Sat May 10 01:32:17 GMT 2025
    - 7.8K bytes
    - Click Count (0)
  6. impl/maven-core/src/main/java/org/apache/maven/lifecycle/DefaultLifecycles.java

        }
    
        private Map<String, Lifecycle> lookupLifecycles() {
            // TODO: Remove the following code when maven-compat is gone
            // This code is here to ensure maven-compat's EmptyLifecycleExecutor keeps on working.
            if (lookup == null) {
                return customLifecycles != null ? customLifecycles : new HashMap<>();
            }
    
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Sat Apr 05 11:52:05 GMT 2025
    - 6.6K bytes
    - Click Count (0)
  7. src/test/java/jcifs/internal/smb1/com/SmbComSessionSetupAndXTest.java

            String accountName = (String) getField(obj, "accountName");
            String primaryDomain = (String) getField(obj, "primaryDomain");
    
            // The actual implementation keeps lowercase for guest when Unicode is not enabled
            assertEquals("guest", accountName);
            assertEquals("DOM", primaryDomain);
    
            byte[] lm = (byte[]) getField(obj, "lmHash");
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 6.4K bytes
    - Click Count (0)
  8. src/test/java/jcifs/tests/persistent/PersistentHandleManagerTest.java

            manager.requestDurableHandle("/test/file.txt", HandleType.DURABLE_V2, 100, // 100ms timeout
                    null);
    
            // Wait for expiration
            try {
                Thread.sleep(150);
            } catch (InterruptedException e) {
                Thread.currentThread().interrupt();
            }
    
            HandleInfo info = manager.getHandleForReconnect("/test/file.txt");
            assertNull(info);
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Thu Aug 21 04:51:33 GMT 2025
    - 6.6K bytes
    - Click Count (0)
  9. guava-testlib/test/com/google/common/testing/FakeTickerTest.java

            new Callable<@Nullable Void>() {
              @Override
              public @Nullable Void call() throws Exception {
                // adds two nanoseconds to the ticker
                ticker.advance(1L);
                Thread.sleep(10);
                ticker.advance(1L);
                return null;
              }
            });
    
        assertEquals(numberOfThreads * 2, ticker.read());
      }
    
      @GwtIncompatible // concurrency
    
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Thu Aug 07 16:05:33 GMT 2025
    - 6.3K bytes
    - Click Count (0)
  10. okhttp/src/jvmTest/kotlin/okhttp3/EventListenerTest.kt

        override fun writeTo(sink: BufferedSink) {
          try {
            var i = 0
            while (i < contentLength()) {
              sink.write(chunk!!)
              sink.flush()
              Thread.sleep(100)
              i += chunk.size
            }
          } catch (e: IOException) {
            ioe = e
          } catch (e: InterruptedException) {
            throw RuntimeException(e)
          }
        }
      }
    
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Wed Nov 05 18:28:35 GMT 2025
    - 70.5K bytes
    - Click Count (0)
Back to Top