Package org.eclipse.jetty.io
Class RetainableByteBufferPool.NotRetainedByteBufferPool
java.lang.Object
org.eclipse.jetty.io.RetainableByteBufferPool.NotRetainedByteBufferPool
- All Implemented Interfaces:
RetainableByteBufferPool
- Enclosing interface:
- RetainableByteBufferPool
public static class RetainableByteBufferPool.NotRetainedByteBufferPool
extends Object
implements RetainableByteBufferPool
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.eclipse.jetty.io.RetainableByteBufferPool
RetainableByteBufferPool.NotRetainedByteBufferPool
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
NotRetainedByteBufferPool
-
-
Method Details
-
acquire
Description copied from interface:RetainableByteBufferPool
Acquires a memory buffer from the pool.- Specified by:
acquire
in interfaceRetainableByteBufferPool
- Parameters:
size
- The size of the buffer. The returned buffer will have at least this capacity.direct
- true if a direct memory buffer is needed, false otherwise.- Returns:
- a memory buffer with position and size set to 0.
-
clear
public void clear()- Specified by:
clear
in interfaceRetainableByteBufferPool
-
toString
-