java.lang.Object
net.i2p.router.transport.ntcp.EventPumper.BufferFactory
- All Implemented Interfaces:
TryCache.ObjectFactory<ByteBuffer>
- Enclosing class:
EventPumper
private static class EventPumper.BufferFactoryextends Object implements TryCache.ObjectFactory<ByteBuffer>
Creates byte buffers for the read buffer cache.
Constructor Summary
ConstructorsMethod Summary
All MethodsModifier and TypeMethodDescriptionCreate a new buffer of BUF_SIZE, direct or heap.
Constructor Details
BufferFactory
private BufferFactory()Factory for the pooled read buffers.
Method Details
newInstance
Create a new buffer of BUF_SIZE, direct or heap.- Specified by:
newInstancein interfaceTryCache.ObjectFactory<ByteBuffer>- Returns:
- a newly created instance of the cached type