org.glassfish.grizzly.memory.slab
Class SlabPoolMemoryManagerImpl

java.lang.Object
  extended by org.glassfish.grizzly.memory.ByteBufferManager
      extended by org.glassfish.grizzly.memory.slab.SlabMemoryManagerBase
          extended by org.glassfish.grizzly.memory.slab.SlabPoolMemoryManagerImpl
All Implemented Interfaces:
MemoryManager<ByteBufferWrapper>, WrapperAware<ByteBufferWrapper>

public class SlabPoolMemoryManagerImpl
extends SlabMemoryManagerBase

An Allocator implemented on a SlabPool. All of the Slab management is delegated to the SlabPool.

Author:
Ken Cavanaugh

Field Summary
 
Fields inherited from class org.glassfish.grizzly.memory.ByteBufferManager
isDirect
 
Constructor Summary
SlabPoolMemoryManagerImpl(SlabMemoryManagerFactory.SlabPool pool)
           
 
Method Summary
 boolean bufferType()
           
 void dispose(Slab slab, ByteBuffer store)
           
 int maxAllocationSize()
          Returns the maximum size that can be allocated by an allocate( int ) call.
 
Methods inherited from class org.glassfish.grizzly.memory.slab.SlabMemoryManagerBase
allocate, allocate, reallocate, release
 
Methods inherited from class org.glassfish.grizzly.memory.ByteBufferManager
allocate0, isDirect, setDirect, wrap, wrap, wrap, wrap, wrap
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SlabPoolMemoryManagerImpl

public SlabPoolMemoryManagerImpl(SlabMemoryManagerFactory.SlabPool pool)
Method Detail

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.