Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 78 for sarete (0.48 sec)

  1. src/test/java/jcifs/internal/smb2/multichannel/ChannelManagerTest.java

            }
    
            assertDoesNotThrow(() -> channelManager.shutdown());
        }
    
        @Test
        void testConcurrentAccess() throws InterruptedException {
            // Test thread safety
            Thread[] threads = new Thread[10];
            for (int i = 0; i < threads.length; i++) {
                threads[i] = new Thread(() -> {
                    channelManager.getChannels();
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 21 11:13:46 UTC 2025
    - 7.6K bytes
    - Viewed (0)
  2. src/test/java/jcifs/internal/smb2/Smb2EchoRequestTest.java

                assertEquals(4, written);
                assertEquals(4, SMBUtil.readInt2(largeBuffer, 5000));
            }
    
            @Test
            @DisplayName("Should maintain thread safety")
            void testThreadSafety() throws InterruptedException {
                int threadCount = 10;
                Thread[] threads = new Thread[threadCount];
                boolean[] success = new boolean[threadCount];
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.3K bytes
    - Viewed (0)
  3. src/test/java/jcifs/util/SimpleCircuitBreakerTest.java

            assertEquals(0, stats.consecutiveFailures);
            assertEquals(SimpleCircuitBreaker.State.CLOSED, circuitBreaker.getState());
        }
    
        @RepeatedTest(10)
        @DisplayName("Test thread safety")
        void testThreadSafety() throws InterruptedException {
            SimpleCircuitBreaker breaker = new SimpleCircuitBreaker("concurrent", 5, 3, 100);
            AtomicInteger successCount = new AtomicInteger(0);
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 10.6K bytes
    - Viewed (0)
  4. src/main/java/org/codelibs/fess/helper/ProcessHelper.java

        }
    
        /**
         * Starts a new process with the given session ID, command list, buffer size, and output callback.
         * This method is synchronized to ensure thread safety when managing processes.
         *
         * @param sessionId unique identifier for the process session
         * @param cmdList list of command and arguments to execute
         * @param pbCall callback to configure the ProcessBuilder
    Registered: Sat Dec 20 09:19:18 UTC 2025
    - Last Modified: Thu Nov 20 06:54:47 UTC 2025
    - 10.9K bytes
    - Viewed (0)
  5. src/test/java/jcifs/EmptyIteratorTest.java

                int count = 0;
                while (emptyIterator.hasNext()) {
                    emptyIterator.next();
                    count++;
                    if (count > 10)
                        break; // Safety check
                }
                assertEquals(0, count, "No iterations should occur for empty iterator");
            }, "EmptyIterator should work with manual iteration");
        }
    
        @Test
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/core/misc/DynamicProperties.java

     * <ul>
     *   <li>{@link FileAccessException} - Thrown if there are issues accessing the file.</li>
     *   <li>{@link IORuntimeException} - Thrown if there are I/O errors during file operations.</li>
     * </ul>
     *
     * <p>Thread Safety:
     * This class uses synchronization to ensure thread-safe access to the properties.
     *
     * @see Properties
     */
    public class DynamicProperties extends Properties {
    
        private static final long serialVersionUID = 1L;
    Registered: Sat Dec 20 08:55:33 UTC 2025
    - Last Modified: Sat Jul 05 00:11:05 UTC 2025
    - 13.1K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/core/lang/StringUtil.java

            return ch >= 32 && ch < 127;
        }
    
        /**
         * Creates a new String from a char array.
         * <p>
         * Note: This method no longer uses internal JDK APIs for safety and compatibility.
         * It now uses the standard String constructor.
         * </p>
         *
         * @param chars
         *            the char array
         * @return a new String, or null if the input is null
    Registered: Sat Dec 20 08:55:33 UTC 2025
    - Last Modified: Sat Nov 22 11:21:59 UTC 2025
    - 21.5K bytes
    - Viewed (0)
  8. src/test/java/jcifs/internal/smb2/RequestWithFileIdTest.java

                assertTrue(RequestWithFileId.class.isAssignableFrom(impl), impl.getSimpleName() + " should implement RequestWithFileId");
            }
        }
    
        @Test
        @DisplayName("Should test thread safety of setFileId")
        void testThreadSafety() throws InterruptedException {
            // Given
            RequestWithFileId request = new Smb2CloseRequest(mockConfig, emptyFileId);
            int threadCount = 10;
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.9K bytes
    - Viewed (0)
  9. src/test/java/jcifs/internal/smb1/trans/nt/FileNotifyInformationImplTest.java

            byte[] fileNameBytes = fileName.getBytes(StandardCharsets.UTF_16LE);
            int totalSize = 12 + fileNameBytes.length + 50; // Extra space for safety
            byte[] buffer = new byte[totalSize];
    
            // Write next entry offset (4 bytes)
            SMBUtil.writeInt4(nextOffset, buffer, 0);
    
            // Write action (4 bytes)
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 13.1K bytes
    - Viewed (0)
  10. fess-crawler/src/main/java/org/codelibs/fess/crawler/util/XmlUtil.java

     * <h2>Usage Example:</h2>
     * <pre>
     * {@code
     * String escapedXml = XmlUtil.escapeXml("<tag>value</tag>");
     * Map<String, Object> dataMap = XmlUtil.getDataMap(accessResultData);
     * }
     * </pre>
     *
     * <h2>Thread Safety:</h2>
     * <p>
     * This class is thread-safe as it does not maintain any state.
     * </p>
     *
     * <h2>Dependencies:</h2>
     * <ul>
     *   <li>org.apache.logging.log4j.Logger</li>
    Registered: Sat Dec 20 11:21:39 UTC 2025
    - Last Modified: Sat Nov 22 13:28:22 UTC 2025
    - 9.5K bytes
    - Viewed (0)
Back to top