java.lang.Object
org.eclipse.jetty.io.Retainable.Wrapper
org.eclipse.jetty.io.RetainableByteBuffer.Wrapper
org.eclipse.jetty.io.ArrayByteBufferPool.Tracking.Buffer
- All Implemented Interfaces:
Retainable,RetainableByteBuffer
- Enclosing class:
ArrayByteBufferPool.Tracking
-
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.Wrapper -
Field Summary
Fields inherited from interface org.eclipse.jetty.io.RetainableByteBuffer
EMPTY -
Method Summary
Methods inherited from class org.eclipse.jetty.io.RetainableByteBuffer.Wrapper
capacity, clear, getByteBuffer, getWrapped, hasRemaining, isDirect, isRetained, remainingMethods inherited from class org.eclipse.jetty.io.Retainable.Wrapper
canRetain, toStringMethods 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
-
Method Details
-
getSize
public int getSize() -
getAcquireInstant
-
getAcquireStack
-
retain
public void retain()Description copied from interface:RetainableRetains this resource, potentially incrementing a reference count if there are resources that will be released.
- Specified by:
retainin interfaceRetainable- Overrides:
retainin classRetainable.Wrapper
-
release
public boolean release()Description copied from interface:RetainableReleases this resource, potentially decrementing a reference count (if any).
- Specified by:
releasein interfaceRetainable- Overrides:
releasein classRetainable.Wrapper- Returns:
truewhen the reference count goes to zero or if there was no reference count,falseotherwise.
-
dump
-