- Sort Score
- Result 10 results
- Languages All
Results 1 - 5 of 5 for maxBuffers (0.04 sec)
-
src/test/java/jcifs/BufferCacheTest.java
private final List<byte[]> cache; private final int bufferSize; private final int maxBuffers; public TestBufferCacheImpl(int maxBuffers, int bufferSize) { this.maxBuffers = maxBuffers; this.bufferSize = bufferSize; this.cache = new ArrayList<>(maxBuffers); } @Override public synchronized byte[] getBuffer() {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 4.3K bytes - Viewed (0) -
src/main/java/jcifs/smb/BufferCacheImpl.java
} /** * Constructs a buffer cache with specified parameters. * * @param maxBuffers the maximum number of buffers to cache * @param maxSize the size of each buffer in bytes * */ public BufferCacheImpl(final int maxBuffers, final int maxSize) { this.cache = new Object[maxBuffers]; this.bufferSize = maxSize; } /** * {@inheritDoc} *
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 3.2K bytes - Viewed (0) -
src/main/java/jcifs/smb1/smb1/BufferCache.java
* Private constructor to prevent instantiation of this utility class. */ private BufferCache() { // Utility class - not instantiable } private static final int MAX_BUFFERS = Config.getInt("jcifs.smb1.smb.maxBuffers", 16); private static final int MAX_BUFFER_SIZE = 0x100000; // 1MB maximum // Use concurrent queue for lock-free operations
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 4.2K bytes - Viewed (0) -
src/test/java/jcifs/smb/BufferCacheImplTest.java
} } // Invalid inputs: negative sizes for constructor arguments @Nested class InvalidConstruction { @Test @DisplayName("Negative maxBuffers throws immediately in constructor") void negativeMaxBuffersThrows() { assertThrows(NegativeArraySizeException.class, () -> new BufferCacheImpl(-1, 10)); } @Test
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 7.5K bytes - Viewed (0) -
src/main/java/jcifs/Configuration.java
* * @return maximum data size for SMB transactions */ int getTransactionBufferSize(); /** * * Property {@code jcifs.smb.maxBuffers} (int, default 16) * * @return number of buffers to keep in cache */ int getBufferCacheSize(); /** * * Property {@code jcifs.smb.client.listCount} (int, default 200)
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 25.4K bytes - Viewed (0)