Module jcifs

Class BufferCacheImpl

java.lang.Object
org.codelibs.jcifs.smb.impl.BufferCacheImpl
All Implemented Interfaces:
BufferCache

public class BufferCacheImpl extends Object implements BufferCache
Cache for reusable byte buffers

This class is intended for internal use.

  • Constructor Details

    • BufferCacheImpl

      public BufferCacheImpl(Configuration cfg)
      Constructs a buffer cache using configuration settings.
      Parameters:
      cfg - the configuration to use for buffer cache settings
    • BufferCacheImpl

      public BufferCacheImpl(int maxBuffers, int maxSize)
      Constructs a buffer cache with specified parameters.
      Parameters:
      maxBuffers - the maximum number of buffers to cache
      maxSize - the size of each buffer in bytes
  • Method Details