Package org.eclipse.jetty.io
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 org.eclipse.jetty.io.Retainable
Retainable.ReferenceCounter, Retainable.Wrapper
Nested 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, remaining
Methods inherited from class org.eclipse.jetty.io.Retainable.Wrapper
canRetain, toString
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
-
Method Details
-
getSize
public int getSize() -
getAcquireInstant
-
getAcquireStack
-
retain
public void retain()Description copied from interface:Retainable
Retains this resource, potentially incrementing a reference count if there are resources that will be released.
- Specified by:
retain
in interfaceRetainable
- Overrides:
retain
in classRetainable.Wrapper
-
release
public boolean release()Description copied from interface:Retainable
Releases this resource, potentially decrementing a reference count (if any).
- Specified by:
release
in interfaceRetainable
- Overrides:
release
in classRetainable.Wrapper
- Returns:
true
when the reference count goes to zero or if there was no reference count,false
otherwise.
-
dump
-