Top Fields Constructors Methods
io.netty5.buffer.pool

pack-priv Class PooledDrop

extends Object
implements Drop<Buffer>
Class Inheritance
All Implemented Interfaces
io.netty5.buffer.Drop
Imports
io.netty5.buffer.Buffer, .Drop

Field Summary

Modifier and TypeField and Description
private final Drop<Buffer>
private final PoolChunk
private final long
private final int
private final PoolThreadCache

Constructor Summary

AccessConstructor and Description
pack-priv
PooledDrop(PoolChunk chunk, PoolThreadCache threadCache, long handle, int normSize)

Method Summary

Modifier and TypeMethod and Description
public void
attach(Buffer
The new Resource instance with the new owner.
obj
)

Implements io.netty5.buffer.Drop.attach.

Called when the resource changes owner.
public void
drop(Buffer
The Resource instance being dropped.
obj
)

Implements io.netty5.buffer.Drop.drop.

Dispose of the resources in the given Resource instance.
public Drop<Buffer>
fork()

Implements io.netty5.buffer.Drop.fork.

Branch the responsibility of dropping a resource.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

baseDropback to summary
private final Drop<Buffer> baseDrop
chunkback to summary
private final PoolChunk chunk
handleback to summary
private final long handle
normSizeback to summary
private final int normSize
threadCacheback to summary
private final PoolThreadCache threadCache

Constructor Detail

PooledDropback to summary
pack-priv PooledDrop(PoolChunk chunk, PoolThreadCache threadCache, long handle, int normSize)

Method Detail

attachback to summary
public void attach(Buffer obj)

Implements io.netty5.buffer.Drop.attach.

Doc from io.netty5.buffer.Drop.attach.

Called when the resource changes owner.

Parameters
obj:Buffer

The new Resource instance with the new owner.

Annotations
@Override
dropback to summary
public void drop(Buffer obj)

Implements io.netty5.buffer.Drop.drop.

Doc from io.netty5.buffer.Drop.drop.

Dispose of the resources in the given Resource instance.

Parameters
obj:Buffer

The Resource instance being dropped.

Annotations
@Override
forkback to summary
public Drop<Buffer> fork()

Implements io.netty5.buffer.Drop.fork.

Doc from io.netty5.buffer.Drop.fork.

Branch the responsibility of dropping a resource. This drop instance will remain associated with its current resource, while the returned drop instance must be attached to its new resource.

Returns:Drop<Buffer>

A drop instance, similar to this one, but for the purpose of being associated with a different but related resource.

Annotations
@Override