public class DirectByteBufferCache extends Object implements DirectByteBufferCacheMBean
| Modifier and Type | Method and Description |
|---|---|
ByteBuffer |
allocateDirect(int capacity) |
void |
free(ByteBuffer byteBuffer) |
int |
getBufferCount() |
Map<Integer,Integer> |
getBufferSizeAndCounts() |
int |
getByteBufferCacheSize() |
long |
getInUseCapacity() |
int |
getInUseCount() |
long |
getTotalCapacity() |
static DirectByteBufferCache |
instance() |
String |
toString() |
public static DirectByteBufferCache instance()
public ByteBuffer allocateDirect(int capacity)
public void free(ByteBuffer byteBuffer)
public int getBufferCount()
getBufferCount in interface DirectByteBufferCacheMBeanpublic long getTotalCapacity()
getTotalCapacity in interface DirectByteBufferCacheMBeanpublic int getInUseCount()
getInUseCount in interface DirectByteBufferCacheMBeanpublic long getInUseCapacity()
getInUseCapacity in interface DirectByteBufferCacheMBeanpublic int getByteBufferCacheSize()
getByteBufferCacheSize in interface DirectByteBufferCacheMBeanpublic Map<Integer,Integer> getBufferSizeAndCounts()
getBufferSizeAndCounts in interface DirectByteBufferCacheMBeanCopyright © 2024 LSST. All rights reserved.