Package org.eclipse.jetty.io
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.WrapperNested 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_RETAINABLEFields inherited from interface org.eclipse.jetty.io.RetainableByteBuffer
EMPTY -
Constructor Summary
ConstructorsModifierConstructorDescriptionPooled(ByteBufferPool pool, ByteBuffer byteBuffer) protectedPooled(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, spaceMethods inherited from class org.eclipse.jetty.io.RetainableByteBuffer.Abstract
addExtraStringInfo, addStringInfo, addValueString, toDetailString, toStringMethods inherited from class org.eclipse.jetty.io.Retainable.Wrapper
canRetain, getRetained, getWrapped, isRetained, release, retainMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.eclipse.jetty.io.Retainable
canRetain, getRetained, isRetained, release, retainMethods 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, writeToMethods inherited from interface org.eclipse.jetty.io.RetainableByteBuffer.Mutable
put
-
Constructor Details
-
Pooled
-
Pooled
-
-
Method Details
-
slice
Description copied from interface:RetainableByteBufferGet 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
RetainableByteBuffersharing the firstlengthbytes of this buffers data and reference count, but with independent position. The buffer isretainedby this call.
-
copy
Description copied from interface:RetainableByteBufferCreates a deep copy of this RetainableByteBuffer that is entirely independent- Returns:
- A copy of this RetainableByteBuffer
-