Top Fields Constructors Methods
io.netty5.buffer.unsafe

pack-priv Class FreeAddress

extends Object
implements Runnable, Drop<Buffer>
Class Inheritance
All Implemented Interfaces
io.netty5.buffer.Drop, java.lang.Runnable
Imports
io.netty5.buffer.Buffer, .Drop, io.netty5.buffer.internal.InternalBufferUtils, io.netty5.util.internal.PlatformDependent

Field Summary

Modifier and TypeField and Description
private final long
private final int

Constructor Summary

AccessConstructor and Description
pack-priv
FreeAddress(long address, int size)

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.
public void
run()

Implements java.lang.Runnable.run.

Runs this operation.
public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

addressback to summary
private final long address
sizeback to summary
private final int size

Constructor Detail

FreeAddressback to summary
pack-priv FreeAddress(long address, int size)

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
runback to summary
public void run()

Implements java.lang.Runnable.run.

Doc from java.lang.Runnable.run.

Runs this operation.

Annotations
@Override
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object.

Returns:String

a string representation of the object.

Annotations
@Override