Class ArrayByteBufferPool.Tracking.Buffer
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 Retainable
Retainable.ReferenceCounter, Retainable.WrapperNested classes/interfaces inherited from interface RetainableByteBuffer
RetainableByteBuffer.Wrapper -
Field Summary
Fields inherited from interface RetainableByteBuffer
EMPTY -
Method Summary
Methods inherited from class RetainableByteBuffer.Wrapper
capacity, clear, getByteBuffer, getWrapped, hasRemaining, isDirect, isRetained, remainingMethods inherited from class Retainable.Wrapper
canRetain, toStringMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface 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
-