Package io.netty5.buffer.api.internal
Class ArcDrop<T>
- java.lang.Object
-
- io.netty5.buffer.api.internal.ArcDrop<T>
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static <X> Drop<X>acquire(Drop<X> drop)voidattach(T obj)Called when the resource changes owner.voiddrop(T obj)Dispose of the resources in the givenResourceinstance.Drop<T>fork()Branch the responsibility of dropping a resource.ArcDrop<T>increment()StringtoString()Drop<T>unwrap()static <X> Drop<X>wrap(Drop<X> drop)
-
-
-
Method Detail
-
drop
public void drop(T obj)
Description copied from interface:DropDispose of the resources in the givenResourceinstance.
-
fork
public Drop<T> fork()
Description copied from interface:DropBranch 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.
-
attach
public void attach(T obj)
Description copied from interface:DropCalled when the resource changes owner.
-
-