org.glassfish.grizzly.memory.slab
Class SlabMemoryManagerImpl
java.lang.Object
org.glassfish.grizzly.memory.ByteBufferManager
org.glassfish.grizzly.memory.slab.SlabMemoryManagerBase
org.glassfish.grizzly.memory.slab.SlabMemoryManagerImpl
- All Implemented Interfaces:
- MemoryManager<ByteBufferWrapper>, WrapperAware<ByteBufferWrapper>
public class SlabMemoryManagerImpl
- extends SlabMemoryManagerBase
A simple non-pooled implementation of an Allocator.
It creates a Slab whenever the current Slab is
exhausted, and relies on the garbage collector to recover the space.
Generally this should only be used with BufferType HEAP.
- Author:
- Ken Cavanaugh
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SlabMemoryManagerImpl
public SlabMemoryManagerImpl(int maxAllocationSize,
boolean bufferType)
maxAllocationSize
public int maxAllocationSize()
- Description copied from class:
SlabMemoryManagerBase
- Returns the maximum size that can be allocated by an allocate( int ) call.
- Specified by:
maxAllocationSize in class SlabMemoryManagerBase
bufferType
public boolean bufferType()
dispose
public void dispose(Slab slab,
ByteBuffer store)
- Specified by:
dispose in class SlabMemoryManagerBase
Copyright © 2009 SUN Microsystems. All Rights Reserved.