getNextBlock

fun getNextBlock(behaviour: Js5Configuration.Js5MissingGroupBehaviour, provider: Js5GroupProvider, blockLength: Int): Js5GroupResponse?

Gets the next block response for this channel, typically a section of a cache group.

Return

a group response to write to the client, or null if none exists

Parameters

behaviour

the behaviour for missing JS5 groups, dictating what should be done when the client makes a request that simply does not exist.

provider

the provider for JS5 groups

blockLength

the maximum size of a block to write in a single call. If the number of bytes left in this group to write is less than the block, then less bytes are written than expected.