public class SmartByteArrayCache extends SmartLengthBasedCache<byte[]>
| Constructor and Description | 
|---|
| SmartByteArrayCache(int maxCachedBufferLength,
                   double expungeRatio,
                   int expungeCount,
                   int defaultResourceLength,
                   ISmartLengthBasedCacheCallback callback) | 
| Modifier and Type | Method and Description | 
|---|---|
| protected byte[] | createResource(int length) | 
| protected int | getResourceCapacity(byte[] resource) | 
| protected void | prepareResource(byte[] resource) | 
| protected void | prepareResource(byte[] resource,
               int length) | 
get, get, getLength, notifyUsedSize, set, toCacheCallback, tryCacheResourcepublic SmartByteArrayCache(int maxCachedBufferLength,
                           double expungeRatio,
                           int expungeCount,
                           int defaultResourceLength,
                           ISmartLengthBasedCacheCallback callback)
protected void prepareResource(byte[] resource)
prepareResource in class SmartLengthBasedCache<byte[]>protected void prepareResource(byte[] resource,
                               int length)
prepareResource in class SmartLengthBasedCache<byte[]>protected byte[] createResource(int length)
createResource in class SmartLengthBasedCache<byte[]>protected int getResourceCapacity(byte[] resource)
getResourceCapacity in class SmartLengthBasedCache<byte[]>Copyright © GigaSpaces.