IRetainableMessageBufferReader

interface IRetainableMessageBufferReader : IMessageBufferReader

Reader that can retain resources. If retained, owned resources must be explicitly released using the release method

Functions

Link copied to clipboard
abstract fun asBuffer(): ByteBuffer

Expose this message buffer as a read-only bytebuffer. If the message buffer is backed by a file, it will be mapped into memory

Link copied to clipboard
abstract override fun close()
Link copied to clipboard
abstract fun release()

Release resources retained when retain is called

Link copied to clipboard
abstract fun retain()

Retain owned resources until release is called

Link copied to clipboard
open fun write(to: FileChannel): Int

Write this message buffer to the provided file channel

Properties

Link copied to clipboard
abstract val size: Int

Size of the buffer

Inheritors

Link copied to clipboard