Package org.eclipse.jetty.io
Class LeakTrackingByteBufferPool
java.lang.Object
org.eclipse.jetty.util.component.AbstractLifeCycle
org.eclipse.jetty.util.component.ContainerLifeCycle
org.eclipse.jetty.io.LeakTrackingByteBufferPool
- All Implemented Interfaces:
ByteBufferPool,Container,Destroyable,Dumpable,Dumpable.DumpableContainer,LifeCycle
@ManagedObject
@Deprecated(since="2021-05-27")
public class LeakTrackingByteBufferPool
extends ContainerLifeCycle
implements ByteBufferPool
Deprecated.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle
AbstractLifeCycle.AbstractLifeCycleListenerNested classes/interfaces inherited from interface org.eclipse.jetty.io.ByteBufferPool
ByteBufferPool.Bucket, ByteBufferPool.LeaseNested classes/interfaces inherited from interface org.eclipse.jetty.util.component.Container
Container.InheritedListener, Container.ListenerNested classes/interfaces inherited from interface org.eclipse.jetty.util.component.Dumpable
Dumpable.DumpableContainerNested classes/interfaces inherited from interface org.eclipse.jetty.util.component.LifeCycle
LifeCycle.Listener -
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionacquire(int size, boolean direct) Deprecated.Requests aByteBufferof the given size.voidDeprecated.Clears the tracking data returned bygetLeakedAcquires(),getLeakedReleases(),getLeakedResources().longDeprecated.longDeprecated.longDeprecated.longDeprecated.voidrelease(ByteBuffer buffer) Deprecated.Returns aByteBuffer, usually obtained withByteBufferPool.acquire(int, boolean)(but not necessarily), making it available for recycling and reuse.voidremove(ByteBuffer buffer) Deprecated.Removes aByteBufferthat was previously obtained withByteBufferPool.acquire(int, boolean).Methods inherited from class org.eclipse.jetty.util.component.ContainerLifeCycle
addBean, addBean, addEventListener, addManaged, contains, destroy, dump, dump, dump, dump, dump, dumpObject, dumpStdErr, getBean, getBeans, getBeans, getContainedBeans, isAuto, isManaged, isUnmanaged, manage, removeBean, removeBeans, removeEventListener, setBeans, setStopTimeout, unmanage, updateBean, updateBean, updateBeansMethods inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle
addLifeCycleListener, getState, getState, getStopTimeout, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, start, stop, toStringMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.eclipse.jetty.io.ByteBufferPool
newByteBufferMethods inherited from interface org.eclipse.jetty.util.component.Dumpable.DumpableContainer
isDumpable
-
Constructor Details
-
LeakTrackingByteBufferPool
Deprecated.
-
-
Method Details
-
acquire
Deprecated.Description copied from interface:ByteBufferPoolRequests a
ByteBufferof the given size.The returned buffer may have a bigger capacity than the size being requested but it will have the limit set to the given size.
- Specified by:
acquirein interfaceByteBufferPool- Parameters:
size- the size of the bufferdirect- whether the buffer must be direct or not- Returns:
- the requested buffer
- See Also:
-
release
Deprecated.Description copied from interface:ByteBufferPoolReturns a
ByteBuffer, usually obtained withByteBufferPool.acquire(int, boolean)(but not necessarily), making it available for recycling and reuse.- Specified by:
releasein interfaceByteBufferPool- Parameters:
buffer- the buffer to return- See Also:
-
remove
Deprecated.Description copied from interface:ByteBufferPoolRemoves a
ByteBufferthat was previously obtained withByteBufferPool.acquire(int, boolean).The buffer will not be available for further reuse.
- Specified by:
removein interfaceByteBufferPool- Parameters:
buffer- the buffer to remove- See Also:
-
clearTracking
Deprecated.Clears the tracking data returned bygetLeakedAcquires(),getLeakedReleases(),getLeakedResources(). -
getLeakedAcquires
Deprecated.- Returns:
- count of ByteBufferPool.acquire() calls that detected a leak
-
getLeakedReleases
Deprecated.- Returns:
- count of ByteBufferPool.release() calls that detected a leak
-
getLeakedRemoves
Deprecated.- Returns:
- count of ByteBufferPool.remove() calls that detected a leak
-
getLeakedResources
Deprecated.- Returns:
- count of resources that were acquired but not released
-