Bound

inner class Bound

The guard of one gateway, under its HTTP budget.

Properties

Link copied to clipboard
Link copied to clipboard

The list size applied to a list query that sends limit = 0, or null when none is applied.

Functions

Link copied to clipboard

Rewrites an unbounded (ListQuery.limit == 0) request-body list query to the server-side default list size, so clients following the published limit default are not rejected. Negative limits are kept for the budget to reject. Disabled when either the default list size or the list limit is 0, matching the 0-disables convention: with list caps off, 0 keeps its query-model meaning of unlimited.

Link copied to clipboard
fun <T : Any> flux(request: ServerRequest, result: () -> Flux<T>): Flux<T>

Bounds the execution of a streaming query: applies the idle timeout, fails (a server fault) on more rows than the list limit, and buffers the rows (at most the list limit) unless the client accepts an event stream or the list limit is off, so a late failure still produces an error response. result runs on subscription.

Link copied to clipboard
fun <T : Any> mono(result: () -> Mono<T>): Mono<T>

Bounds the execution of a single-result query: applies the idle timeout and fails, as a server fault, on a page that exceeds the page limit. result runs on subscription, so checks it performs fail the publisher.