Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 31 - 40 of 81 for AutoCloseable (0.11 seconds)

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

     * RDMA operations. The memory region contains a buffer, access
     * permissions, and keys for local and remote access.
     */
    public abstract class RdmaMemoryRegion implements AutoCloseable {
    
        /** Memory buffer for RDMA operations */
        protected final ByteBuffer buffer;
        /** Access permissions for this memory region */
        protected final EnumSet<RdmaAccess> accessFlags;
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sun Aug 24 00:12:28 GMT 2025
    - 4.3K bytes
    - Click Count (0)
  2. build-logic-commons/basics/src/main/kotlin/gradlebuild/basics/util/KotlinSourceParser.kt

    import java.io.File
    
    
    class KotlinSourceParser {
    
        data class ParsedKotlinFiles(
    
            val ktFiles: List<KtFile>,
    
            private
            val disposable: Disposable
    
        ) : AutoCloseable {
    
            override fun close() {
                Disposer.dispose(disposable)
            }
        }
    
        private
        val messageCollector: MessageCollector
    Created: Wed Apr 01 11:36:16 GMT 2026
    - Last Modified: Wed Mar 18 05:37:07 GMT 2026
    - 3.9K bytes
    - Click Count (0)
  3. android/guava/src/com/google/common/util/concurrent/ClosingFuture.java

         * Level 28</a> is the first version in which {@code MediaDrm} is {@code AutoCloseable}. To
         * support older versions, pass a wrapper {@code AutoCloseable} with a method reference like
         * {@code mediaDrm::release}.
         *
         * @param closeable the object to be closed
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Apr 01 17:27:13 GMT 2026
    - 101.7K bytes
    - Click Count (0)
  4. src/test/java/jcifs/smb/SimpleMemoryManagementTest.java

            session.acquire();
    
            // Should handle exceptions gracefully
            assertDoesNotThrow(() -> session.release());
        }
    
        /**
         * Test AutoCloseable pattern
         */
        @Test
        @Timeout(5)
        public void testAutoCloseablePattern() throws Exception {
            SmbSessionImpl session = new SmbSessionImpl(mockContext, "testhost", "testdomain", mockTransport);
    
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sun Aug 31 08:00:57 GMT 2025
    - 5.7K bytes
    - Click Count (0)
  5. src/main/java/org/codelibs/fess/storage/StorageClient.java

    import java.util.Map;
    
    /**
     * Interface for cloud storage operations.
     * Implementations provide access to S3-compatible storage, GCS, or other cloud storage systems.
     */
    public interface StorageClient extends AutoCloseable {
    
        /**
         * Uploads an object to storage.
         *
         * @param objectName the name/path for the object
         * @param inputStream the input stream of data to upload
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sat Dec 13 02:21:17 GMT 2025
    - 2.8K bytes
    - Click Count (0)
  6. src/test/java/jcifs/SmbResourceTest.java

        class InterfaceContractTests {
    
            @Test
            @DisplayName("SmbResource should extend AutoCloseable")
            void testInterfaceInheritance() {
                // Then
                assertTrue(AutoCloseable.class.isAssignableFrom(SmbResource.class), "SmbResource should extend AutoCloseable");
            }
    
            @Test
            @DisplayName("SmbResource should have all required methods")
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 35K bytes
    - Click Count (0)
  7. 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 () -> {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Feb 27 21:20:19 GMT 2026
    - 8.6K bytes
    - Click Count (0)
  8. 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;
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 23 05:11:12 GMT 2025
    - 8.7K bytes
    - Click Count (0)
  9. 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,
    Created: Sun Apr 12 03:50:13 GMT 2026
    - Last Modified: Mon Nov 24 03:59:47 GMT 2025
    - 17K bytes
    - Click Count (0)
  10. 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.
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 7K bytes
    - Click Count (0)
Back to Top