Search Options

Results per page
Sort
Preferred Languages
Advance

Results 211 - 220 of 349 for occupy (0.08 sec)

  1. src/test/java/jcifs/smb/CriticalPerformanceTest.java

                    avgThreadTimeMs);
    
            // Verify performance improvements
            assertTrue(exceptions.isEmpty(), "No exceptions should occur during concurrent access");
            assertEquals(threadCount * operationsPerThread, successCount.get());
            assertTrue(overallTimeMs < 1000, "Operations should complete quickly without lock contention");
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 15.3K bytes
    - Viewed (0)
  2. src/main/java/jcifs/smb1/smb1/NtlmContext.java

         * @param token the input token bytes
         * @param offset offset into the token array
         * @param len length of token data
         * @return the output token bytes
         * @throws SmbException if an error occurs during context initialization
         */
        public byte[] initSecContext(byte[] token, final int offset, final int len) throws SmbException {
            switch (state) {
            case 1:
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 7K bytes
    - Viewed (0)
  3. src/test/java/jcifs/smb/SmbTransportInternalTest.java

        }
    
        // Invalid input: simulate underlying SmbException when capability check fails
        @Test
        @DisplayName("hasCapability throws SmbException when underlying error occurs")
        void hasCapability_throws() throws SmbException {
            doThrow(new SmbException("capability check failed")).when(transport).hasCapability(eq(42));
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 12.1K bytes
    - Viewed (0)
  4. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/connection/FastFallbackExchangeFinder.kt

       * mutated by the call thread only. If is accessed by background connect threads.
       */
      private val tcpConnectsInFlight = CopyOnWriteArrayList<Plan>()
    
      /**
       * Results are posted here as they occur. The find job is done when either one plan completes
       * successfully or all plans fail.
       */
      private val connectResults = taskRunner.backend.decorate(LinkedBlockingDeque<ConnectResult>())
    
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Fri Dec 27 13:39:56 UTC 2024
    - 5.8K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/util/concurrent/WrappingExecutorService.java

    /**
     * An abstract {@code ExecutorService} that allows subclasses to {@linkplain #wrapTask(Callable)
     * wrap} tasks before they are submitted to the underlying executor.
     *
     * <p>Note that task wrapping may occur even if the task is never executed.
     *
     * <p>For delegation without task-wrapping, see {@link ForwardingExecutorService}.
     *
     * @author Chris Nokleberg
     */
    @J2ktIncompatible
    @GwtIncompatible
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Fri Jul 11 18:52:30 UTC 2025
    - 5.4K bytes
    - Viewed (0)
  6. src/main/java/jcifs/SmbResourceException.java

     * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
     */
    
    package jcifs;
    
    /**
     * Exception for resource-related SMB errors
     *
     * This exception is thrown when resource issues occur such as:
     * - File handle leaks
     * - Connection pool exhaustion
     * - Memory allocation failures
     * - Quota exceeded
     */
    public class SmbResourceException extends SmbException {
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 5.6K bytes
    - Viewed (0)
  7. src/test/java/jcifs/smb1/smb1/BufferCacheSecurityTest.java

            executor.shutdown();
    
            // Then - All operations should succeed
            assertTrue(exceptions.isEmpty(), "No exceptions should occur");
            assertEquals(threadCount * opsPerThread, successCount.get(), "All operations should succeed");
        }
    
        /**
         * Test that buffer cache handles allocation when cache is full.
         */
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 9.6K bytes
    - Viewed (0)
  8. src/test/java/jcifs/smb/RequestParamTest.java

            for (RequestParam rp : RequestParam.values()) {
                assertSame(rp, Enum.valueOf(RequestParam.class, rp.name()));
            }
        }
    
        // Interaction: Demonstrate no external interactions occur (no collaborators to call)
        // We use Mockito in a minimal, meaningful way: pass the enum to a mocked consumer and verify interaction.
        interface EnumConsumer {
            void accept(RequestParam rp);
        }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.2K bytes
    - Viewed (0)
  9. src/main/java/jcifs/util/ServerResponseValidator.java

        }
    
        /**
         * Safely add integers checking for overflow
         *
         * @param a first value
         * @param b second value
         * @return sum
         * @throws SmbException if overflow would occur
         */
        public int safeAdd(int a, int b) throws SmbException {
            totalValidations.incrementAndGet();
    
            long result = (long) a + (long) b;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 16.6K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/collect/ImmutableListCopyOfConcurrentlyModifiedInputTest.java

         */
        Set<List<E>> getAllStates();
      }
    
      /**
       * Returns a {@link ConcurrentlyMutatedList} that performs the given operations as its concurrent
       * modifications. The mutations occur in the same thread as the triggering method call.
       */
      private static ConcurrentlyMutatedList<Integer> newConcurrentlyMutatedList(
          Collection<Integer> initialContents, Iterable<ListFrobber> actionsToPerformConcurrently) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 18:46:00 UTC 2025
    - 6.6K bytes
    - Viewed (0)
Back to top