Package org.eclipse.jetty.io
Class ByteBufferPool.Lease
- java.lang.Object
-
- org.eclipse.jetty.io.ByteBufferPool.Lease
-
- Enclosing interface:
- ByteBufferPool
public static class ByteBufferPool.Lease extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description Lease(ByteBufferPool byteBufferPool)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.nio.ByteBuffer
acquire(int capacity, boolean direct)
void
append(java.nio.ByteBuffer buffer, boolean recycle)
java.util.List<java.nio.ByteBuffer>
getByteBuffers()
int
getSize()
long
getTotalLength()
void
insert(int index, java.nio.ByteBuffer buffer, boolean recycle)
void
recycle()
void
release(java.nio.ByteBuffer buffer)
-
-
-
Constructor Detail
-
Lease
public Lease(ByteBufferPool byteBufferPool)
-
-
Method Detail
-
acquire
public java.nio.ByteBuffer acquire(int capacity, boolean direct)
-
append
public void append(java.nio.ByteBuffer buffer, boolean recycle)
-
insert
public void insert(int index, java.nio.ByteBuffer buffer, boolean recycle)
-
getByteBuffers
public java.util.List<java.nio.ByteBuffer> getByteBuffers()
-
getTotalLength
public long getTotalLength()
-
getSize
public int getSize()
-
recycle
public void recycle()
-
release
public void release(java.nio.ByteBuffer buffer)
-
-