Js5FileGroupResponse

A prepared JS5 file-based group response. This response will make use of Netty's FileRegion implementation, allowing for zero-copy responses. This implementation is ideal for development purposes, as it avoids needing to load up the entire JS5 cache into memory. It is however not the best for production, as it is heavily bottlenecked by disk seek and read speeds. In-memory implementations will likely outperform, even if they do need to perform a copy. Furthermore, this implementation is not supported with IOUring sockets, nor does it support XOR encryption.

Constructors

Link copied to clipboard
constructor(file: RandomAccessFile, offset: Int, limit: Int)

Properties

Link copied to clipboard

the file containing the fully prepared response to be written to the client.

Link copied to clipboard
open override val limit: Int
Link copied to clipboard
open override val offset: Int

the file data offset, allowing us to only send a slice of the file

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun toString(): String