Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 567 for threadId (0.35 sec)

  1. src/test/java/jcifs/util/SmbCircuitBreakerTest.java

            // Trip circuit
            circuitBreaker.trip();
            Thread.sleep(100);
    
            long afterTripTime = circuitBreaker.getTimeSinceLastStateChange();
            assertTrue(afterTripTime >= 100, "Time should have advanced");
            assertTrue(afterTripTime < 200, "Time should be reasonable");
    
            // Reset circuit
            circuitBreaker.reset();
            Thread.sleep(50);
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 23.2K bytes
    - Viewed (0)
  2. src/test/java/jcifs/util/SecureKeyManagerTest.java

            for (int t = 0; t < threadCount; t++) {
                final int threadId = t;
                executor.submit(() -> {
                    try {
                        for (int i = 0; i < operationsPerThread; i++) {
                            String sid = "thread-" + threadId + "-key-" + i;
                            byte[] key = keyManager.generateRandomKey(16);
    
                            // Store key
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 14.2K bytes
    - Viewed (0)
  3. src/test/java/jcifs/internal/smb2/Smb2SigningDigestTest.java

                    Arrays.fill(dataArrays[i], (byte) i);
    
                    threads[i] = new Thread(() -> {
                        digest.sign(dataArrays[index], 0, dataArrays[index].length, request, response);
                    });
                }
    
                for (Thread t : threads) {
                    t.start();
                }
                for (Thread t : threads) {
                    t.join();
                }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 43.7K bytes
    - Viewed (0)
  4. src/main/java/jcifs/audit/SecurityAuditLogger.java

                return true;
            });
        }
    
        private void addMdcContext(Map<String, Object> context) {
            // Add MDC context efficiently
            context.put("thread", Thread.currentThread().getName());
            context.put("threadId", Thread.currentThread().getId());
    
            String sessionId = MDC.get("sessionId");
            if (sessionId != null) {
                context.put("sessionId", sessionId);
            }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 26.6K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/util/concurrent/AggregateFutureState.java

         * shouldn't)
         *
         * Our solution is for threads to CAS seenExceptionsField from null to a Set populated with _the
         * initial exception_, no matter which thread does the work. This ensures that
         * seenExceptionsField always contains not just the current thread's exception but also the
         * initial thread's.
         */
        Set<Throwable> seenExceptionsLocal = seenExceptionsField;
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 8.5K bytes
    - Viewed (0)
  6. src/test/java/org/codelibs/fess/exception/UserRoleLoginExceptionTest.java

            Thread thread2 = new Thread(() -> {
                Throwable result = exception.fillInStackTrace();
                assertNull(result);
            });
    
            thread1.start();
            thread2.start();
    
            try {
                thread1.join();
                thread2.join();
            } catch (InterruptedException e) {
                fail("Thread interrupted");
            }
        }
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 4.8K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/util/concurrent/ExecutionListTest.java

              @Override
              public void run() {
                list.execute();
              }
            };
        Thread thread1 = new Thread(execute);
        Thread thread2 = new Thread(execute);
        thread1.start();
        thread2.start();
        assertEquals(0, runCalled.get());
        okayToRun.countDown();
        thread1.join();
        thread2.join();
        assertEquals(1, runCalled.get());
      }
    
      public void testAddAfterRun() throws Exception {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Fri Jul 11 18:52:30 UTC 2025
    - 4.7K bytes
    - Viewed (0)
  8. src/test/java/org/codelibs/fess/mylasta/direction/sponsor/FessSecurityResourceProviderTest.java

                final int index = i;
                threads[i] = new Thread(() -> {
                    invertibles[index] = securityResourceProvider.providePrimaryInvertibleCryptographer();
                    oneWays[index] = securityResourceProvider.providePrimaryOneWayCryptographer();
                });
                threads[i].start();
            }
    
            // Wait for all threads to complete
            for (Thread thread : threads) {
                try {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 12.8K bytes
    - Viewed (0)
  9. src/test/java/jcifs/smb/NtlmPasswordAuthenticatorTest.java

                        Thread.currentThread().interrupt();
                    }
                });
            }
    
            // Start all threads
            for (Thread t : threads) {
                t.start();
            }
    
            // Wait for all threads to complete
            for (Thread t : threads) {
                t.join();
            }
    
            // Verify password is wiped
            assertNull(auth.getPassword());
        }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 23.3K bytes
    - Viewed (0)
  10. src/test/java/jcifs/SmbTransportPoolTest.java

                // When - simulate concurrent requests
                Thread thread1 = new Thread(() -> transportPool.getSmbTransport(context, address, DEFAULT_PORT, false));
                Thread thread2 = new Thread(() -> transportPool.getSmbTransport(context, address, DEFAULT_PORT, true));
    
                thread1.start();
                thread2.start();
                thread1.join();
                thread2.join();
    
                // Then
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 22.6K bytes
    - Viewed (0)
Back to top