Class RetainableByteBuffer.Pooled
java.lang.Object
org.eclipse.jetty.io.Retainable.Wrapper
org.eclipse.jetty.io.RetainableByteBuffer.Abstract
org.eclipse.jetty.io.RetainableByteBuffer.FixedCapacity
org.eclipse.jetty.io.RetainableByteBuffer.Pooled
- All Implemented Interfaces:
Retainable
,RetainableByteBuffer
,RetainableByteBuffer.Mutable
- Enclosing interface:
RetainableByteBuffer
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.eclipse.jetty.io.Retainable
Retainable.ReferenceCounter, Retainable.Wrapper
Nested classes/interfaces inherited from interface org.eclipse.jetty.io.RetainableByteBuffer
RetainableByteBuffer.Abstract, RetainableByteBuffer.DynamicCapacity, RetainableByteBuffer.EmptyRetainableByteBuffer, RetainableByteBuffer.FixedCapacity, RetainableByteBuffer.Mutable, RetainableByteBuffer.NonRetainableByteBuffer, RetainableByteBuffer.Pooled, RetainableByteBuffer.Wrapper
-
Field Summary
Fields inherited from interface org.eclipse.jetty.io.Retainable
NON_RETAINABLE
Fields inherited from interface org.eclipse.jetty.io.RetainableByteBuffer
EMPTY
-
Constructor Summary
ConstructorsModifierConstructorDescriptionPooled
(ByteBufferPool pool, ByteBuffer byteBuffer) protected
Pooled
(ByteBufferPool pool, ByteBuffer byteBuffer, Retainable retainable) -
Method Summary
Methods inherited from class org.eclipse.jetty.io.RetainableByteBuffer.FixedCapacity
add, add, addValueMarker, append, append, asMutable, capacity, clear, get, getByteBuffer, hasRemaining, isDirect, limit, put, put, put, putInt, putLong, putShort, remaining, space
Methods inherited from class org.eclipse.jetty.io.RetainableByteBuffer.Abstract
addExtraStringInfo, addStringInfo, addValueString, toDetailString, toString
Methods inherited from class org.eclipse.jetty.io.Retainable.Wrapper
canRetain, getRetained, getWrapped, isRetained, release, retain
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.eclipse.jetty.io.Retainable
canRetain, getRetained, isRetained, release, retain
Methods inherited from interface org.eclipse.jetty.io.RetainableByteBuffer
appendTo, appendTo, get, get, isEmpty, isFull, isMutable, maxSize, putTo, size, skip, slice, take, take, takeByteArray, takeFrom, toDetailString, writeTo, writeTo
Methods inherited from interface org.eclipse.jetty.io.RetainableByteBuffer.Mutable
put
-
Constructor Details
-
Pooled
-
Pooled
-
-
Method Details
-
slice
Description copied from interface:RetainableByteBuffer
Get a partial slice of the buffer. This is equivalent toRetainableByteBuffer.slice()
.RetainableByteBuffer.limit(long)
, but may be implemented more efficiently.- Parameters:
length
- The number of bytes to slice, which may beyond the limit and less than the capacity, in which case it will ensure some spare capacity in the slice.- Returns:
- A sliced
RetainableByteBuffer
sharing the firstlength
bytes of this buffers data and reference count, but with independent position. The buffer isretained
by this call.
-
copy
Description copied from interface:RetainableByteBuffer
Creates a deep copy of this RetainableByteBuffer that is entirely independent- Returns:
- A copy of this RetainableByteBuffer
-