Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 61 for AutoCloseable (0.47 sec)

  1. fess-crawler/src/main/java/org/codelibs/fess/crawler/Crawler.java

     * including adding URLs to the queue, filtering URLs, managing crawler threads,
     * and handling the overall crawling lifecycle.
     *
     * <p>It implements the Runnable interface to be executed in a separate thread,
     * and the AutoCloseable interface to ensure resources are properly released after use.
     *
     * <p>The crawler uses several services and components, such as UrlQueueService, DataService,
    Registered: Sat Dec 20 11:21:39 UTC 2025
    - Last Modified: Mon Nov 24 03:59:47 UTC 2025
    - 17K bytes
    - Viewed (0)
  2. 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: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sun Aug 24 00:12:28 UTC 2025
    - 8.2K bytes
    - Viewed (0)
  3. src/main/java/jcifs/smb/DirFileEntryEnumIteratorBase.java

                    log.debug("Failed to close enum", e);
                }
            }
            return n;
        }
    
        /**
         * {@inheritDoc}
         *
         * @see java.lang.AutoCloseable#close()
         */
        @Override
        public void close() throws CIFSException {
            if (this.next != null) {
                doClose();
            }
        }
    
        @Override
        public void remove() {
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 7.7K bytes
    - Viewed (0)
  4. 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: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 30 09:24:52 UTC 2025
    - 6.2K bytes
    - Viewed (0)
  5. 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: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 23 09:06:40 UTC 2025
    - 8.2K bytes
    - Viewed (0)
  6. 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: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 7K bytes
    - Viewed (0)
  7. 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: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 23 05:11:12 UTC 2025
    - 8.7K bytes
    - Viewed (0)
  8. src/main/java/jcifs/internal/witness/WitnessRpcClient.java

    /**
     * Client implementation for the SMB Witness RPC protocol (MS-SWN).
     * Provides communication with witness servers for monitoring SMB resource availability.
     */
    public class WitnessRpcClient implements AutoCloseable {
        private static final Logger log = LoggerFactory.getLogger(WitnessRpcClient.class);
    
        private final InetAddress serverAddress;
        private final CIFSContext context;
        private volatile boolean connected = false;
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sun Aug 24 00:12:28 UTC 2025
    - 12.1K bytes
    - Viewed (0)
  9. 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: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 23 05:11:12 UTC 2025
    - 7.1K bytes
    - Viewed (0)
  10. src/test/java/jcifs/SmbTreeTest.java

            assertThrows(RuntimeException.class, () -> smbTree.close(), "Should propagate exception when close fails");
        }
    
        /**
         * Test for AutoCloseable functionality.
         * Verifies that SmbTree can be used in try-with-resources.
         */
        @Test
        void testAutoCloseable() {
            SmbTree autoCloseTree = mock(SmbTree.class);
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.2K bytes
    - Viewed (0)
Back to top