Package org.glassfish.grizzly.memory
Interface ThreadLocalPoolProvider
-
- All Known Implementing Classes:
AbstractMemoryManager,ByteBufferManager,HeapMemoryManager
public interface ThreadLocalPoolProviderThis interface may be implemented by customMemoryManagerimplementations in order to provide per-thread memory management. When Grizzly managed threads are created, if theMemoryManagerimplements this interface,createThreadLocalPool()will be invoked and the resultingThreadLocalPoolwill be passed to theThread.- Since:
- 2.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ThreadLocalPoolcreateThreadLocalPool()
-
-
-
Method Detail
-
createThreadLocalPool
ThreadLocalPool createThreadLocalPool()
- Returns:
- a new
ThreadLocalPoolimplementation. This method must return a newThreadLocalPoolinstance per invocation.
-
-