Record Class NettyNioBufferReleasingAllocator.DirectBufferFreeDrop
java.lang.Object
java.lang.Record
eu.cloudnetservice.driver.network.netty.buffer.NettyNioBufferReleasingAllocator.DirectBufferFreeDrop
- Record Components:
memoryManager- the memory manager that is responsible for allocation.
- All Implemented Interfaces:
io.netty5.buffer.Drop<io.netty5.buffer.Buffer>
- Enclosing class:
NettyNioBufferReleasingAllocator
private static record NettyNioBufferReleasingAllocator.DirectBufferFreeDrop(@NonNull io.netty5.buffer.bytebuffer.ByteBufferMemoryManager memoryManager)
extends Record
implements io.netty5.buffer.Drop<io.netty5.buffer.Buffer>
A drop implementation that ínvokes the cleaner of ByteBuffers directly upon dropping.
- Since:
- 4.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final MethodHandleprivate static final org.slf4j.Loggerprivate final @NonNull io.netty5.buffer.bytebuffer.ByteBufferMemoryManagerThe field for thememoryManagerrecord component. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateDirectBufferFreeDrop(@NonNull io.netty5.buffer.bytebuffer.ByteBufferMemoryManager memoryManager) Creates an instance of aDirectBufferFreeDroprecord class. -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidfinal booleanIndicates whether some other object is "equal to" this one.@NonNull io.netty5.buffer.Drop<io.netty5.buffer.Buffer> fork()final inthashCode()Returns a hash code value for this object.@NonNull io.netty5.buffer.bytebuffer.ByteBufferMemoryManagerReturns the value of thememoryManagerrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
memoryManager
The field for thememoryManagerrecord component. -
DIRECT_BUFFER_CLEANER
-
LOGGER
private static final org.slf4j.Logger LOGGER
-
-
Constructor Details
-
DirectBufferFreeDrop
private DirectBufferFreeDrop(@NonNull @NonNull io.netty5.buffer.bytebuffer.ByteBufferMemoryManager memoryManager) Creates an instance of aDirectBufferFreeDroprecord class.- Parameters:
memoryManager- the value for thememoryManagerrecord component
-
-
Method Details
-
drop
-
fork
-
attach
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
memoryManager
Returns the value of thememoryManagerrecord component.- Returns:
- the value of the
memoryManagerrecord component
-