org.glassfish.grizzly.memory
Interface ThreadLocalPoolProvider
- All Known Implementing Classes:
- AbstractMemoryManager, ByteBufferManager, HeapMemoryManager
public interface ThreadLocalPoolProvider
This interface may be implemented by custom MemoryManager implementations
in order to provide per-thread memory management.
When Grizzly managed threads are created, if the MemoryManager implements
this interface, createThreadLocalPool() will be invoked and the resulting
ThreadLocalPool will be passed to the Thread.
- Since:
- 2.0
createThreadLocalPool
ThreadLocalPool createThreadLocalPool()
- Returns:
- a new
ThreadLocalPool implementation. This method
must return a new ThreadLocalPool instance per invocation.
Copyright © 2012 Oracle Corporation. All Rights Reserved.