Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 65 for AutoCloseable (0.07 sec)

  1. src/main/java/jcifs/internal/smb2/rdma/RdmaConnection.java

     * Manages connection state, credit flow control, and provides
     * abstract methods for RDMA operations that must be implemented
     * by specific provider implementations.
     */
    public abstract class RdmaConnection implements AutoCloseable {
    
        /**
         * RDMA connection state enumeration
         */
        public enum RdmaConnectionState {
            /** Connection is not established */
            DISCONNECTED,
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 24 00:12:28 UTC 2025
    - 8.2K bytes
    - Viewed (0)
  2. src/test/java/jcifs/util/ResourceManagerTest.java

            // Configure with shorter intervals for testing
            resourceManager.configure(1000, 100, true, true);
        }
    
        /**
         * Test resource for tracking
         */
        static class TestResource implements AutoCloseable {
            private final AtomicBoolean closed = new AtomicBoolean(false);
            private final String name;
    
            TestResource(String name) {
                this.name = name;
            }
    
            @Override
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 8.9K bytes
    - Viewed (0)
  3. src/test/java/jcifs/SmbPipeHandleTest.java

                assertNull(smbPipeHandle.unwrap(SmbPipeHandle.class), "Unwrap should return null for an unsupported type.");
            }
        }
    
        /**
         * Tests the contract for {@link AutoCloseable}.
         */
        @Nested
        public class AutoCloseableContractTest {
    
            /**
             * Verifies that the handle is automatically closed in a try-with-resources statement.
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 7K bytes
    - Viewed (0)
  4. guava/src/com/google/common/util/concurrent/ClosingFuture.java

         * its parameter type is {@code Object}, not {@code AutoCloseable} or {@code Closeable}.
         *
         * @param closeable the object to be closed (see notes above)
         * @param closingExecutor the object will be closed on this executor
         * @return the first argument
         */
        @CanIgnoreReturnValue
        @ParametricNullness
        public <C extends @Nullable Object & @Nullable AutoCloseable> C eventuallyClose(
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Jul 23 15:26:56 UTC 2025
    - 98.1K bytes
    - Viewed (0)
  5. README.md

    - **Authentication**: NTLM, Kerberos, SPNEGO unified subsystem
    - **SLF4J Logging**: Comprehensive logging throughout the codebase
    - **Resource Management**: AutoCloseable patterns for file handles and connections
    - **Thread Safety**: Components support concurrent access
    - **DFS Support**: Distributed File System resolution
    - **Streaming Operations**: Efficient directory listings and file operations
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 09:24:52 UTC 2025
    - 6.2K bytes
    - Viewed (0)
  6. src/test/java/jcifs/internal/smb2/rdma/RdmaBufferManagerTest.java

    /**
     * Unit tests for RDMA buffer manager
     */
    public class RdmaBufferManagerTest {
    
        @Mock
        private RdmaProvider mockProvider;
    
        private RdmaBufferManager bufferManager;
        private AutoCloseable mocks;
    
        @BeforeEach
        public void setUp() throws Exception {
            mocks = MockitoAnnotations.openMocks(this);
    
            // Set up mock provider to return TCP memory regions
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 23 05:11:12 UTC 2025
    - 7.1K bytes
    - Viewed (0)
  7. src/test/java/jcifs/internal/witness/MockWitnessService.java

    /**
     * Mock witness service for integration testing.
     * Simulates a basic witness service that can accept registrations
     * and send notifications.
     */
    public class MockWitnessService implements AutoCloseable {
        private static final Logger log = LoggerFactory.getLogger(MockWitnessService.class);
    
        private ServerSocket serverSocket;
        private final AtomicBoolean running = new AtomicBoolean(false);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 23 09:06:40 UTC 2025
    - 8.2K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/base/FinalizableReferenceQueueTest.java

        GcFinalization.awaitDone(finalizeReferentRan::get);
        assertThat(serverSocket.isClosed()).isTrue();
      }
    
      @SuppressWarnings("Java8ApiChecker")
      static class MyServerExampleWithCleaner implements AutoCloseable {
        private static final Cleaner cleaner = Cleaner.create();
    
        private static Runnable closeServerSocketRunnable(
            ServerSocket serverSocket, AtomicBoolean cleanerRan) {
          return () -> {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 18:46:00 UTC 2025
    - 8.7K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/base/FinalizableReferenceQueueTest.java

        GcFinalization.awaitDone(finalizeReferentRan::get);
        assertThat(serverSocket.isClosed()).isTrue();
      }
    
      @SuppressWarnings("Java8ApiChecker")
      static class MyServerExampleWithCleaner implements AutoCloseable {
        private static final Cleaner cleaner = Cleaner.create();
    
        private static Runnable closeServerSocketRunnable(
            ServerSocket serverSocket, AtomicBoolean cleanerRan) {
          return () -> {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 18:46:00 UTC 2025
    - 8.7K bytes
    - Viewed (0)
  10. src/main/java/jcifs/internal/smb2/rdma/RdmaBufferManager.java

     *
     * Manages pools of pre-registered memory regions to avoid the overhead
     * of frequent registration/deregistration during RDMA operations.
     */
    public class RdmaBufferManager implements AutoCloseable {
    
        private static final Logger log = LoggerFactory.getLogger(RdmaBufferManager.class);
    
        private final RdmaProvider provider;
        private final ConcurrentLinkedQueue<RdmaMemoryRegion> availableSendRegions;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 23 05:11:12 UTC 2025
    - 8.7K bytes
    - Viewed (0)
Back to top