|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.grizzly.memory.slab.SlabPoolImpl
public final class SlabPoolImpl
| Constructor Summary | |
|---|---|
SlabPoolImpl(int maxAllocationSize,
long minSize,
long maxSize,
boolean bufferType)
|
|
| Method Summary | |
|---|---|
long |
allocatedSpace()
Total bytes allocated. |
boolean |
bufferType()
The BufferType of every Slab in this pool. |
void |
close()
|
void |
dispose(Slab slab,
ByteBuffer buffer)
|
long |
freeSpace()
Current free space in pool. |
Slab |
getSlab()
|
int |
maxAllocationSize()
The maxAllocationSize of every Slab in this pool. |
long |
maxSize()
Maximum size to which pool may expand as specified when the SlabPool was created. |
long |
minSize()
Minimum size of pool, as specified when the SlabPool was created. |
int |
numFreeSlabs()
Number of free slabs available for use in Allocators using this SlabPool. |
int |
numFullSlabs()
Number of full slabs which still have allocations in use. |
int |
numPartialSlabs()
Number of slabs currently in use by Allocators. |
void |
releaseSlab(Slab slab)
|
long |
unavailableSpace()
Total bytes disposed but not yet available for use. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SlabPoolImpl(int maxAllocationSize,
long minSize,
long maxSize,
boolean bufferType)
| Method Detail |
|---|
public void close()
close in interface Closeablepublic int maxAllocationSize()
SlabMemoryManagerFactory.SlabPool
maxAllocationSize in interface SlabMemoryManagerFactory.SlabPoolpublic long minSize()
SlabMemoryManagerFactory.SlabPool
minSize in interface SlabMemoryManagerFactory.SlabPoolpublic long maxSize()
SlabMemoryManagerFactory.SlabPool
maxSize in interface SlabMemoryManagerFactory.SlabPoolpublic int numFreeSlabs()
SlabMemoryManagerFactory.SlabPool
numFreeSlabs in interface SlabMemoryManagerFactory.SlabPoolpublic int numPartialSlabs()
SlabMemoryManagerFactory.SlabPool
numPartialSlabs in interface SlabMemoryManagerFactory.SlabPoolpublic int numFullSlabs()
SlabMemoryManagerFactory.SlabPool
numFullSlabs in interface SlabMemoryManagerFactory.SlabPoolpublic long freeSpace()
SlabMemoryManagerFactory.SlabPool
freeSpace in interface SlabMemoryManagerFactory.SlabPoolpublic long unavailableSpace()
SlabMemoryManagerFactory.SlabPool
unavailableSpace in interface SlabMemoryManagerFactory.SlabPoolpublic long allocatedSpace()
SlabMemoryManagerFactory.SlabPool
allocatedSpace in interface SlabMemoryManagerFactory.SlabPoolpublic boolean bufferType()
SlabMemoryManagerFactory.SlabPool
bufferType in interface SlabMemoryManagerFactory.SlabPoolpublic Slab getSlab()
public void releaseSlab(Slab slab)
public void dispose(Slab slab,
ByteBuffer buffer)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||