QueryEntryPolicy
What a gateway requires of a query's QueryEntry before admitting it, and the budget each entry runs under.
Constructors
Properties
the budget of QueryEntry.HTTP queries.
the budget of QueryEntry.IN_PROCESS and QueryEntry.UNSPECIFIED queries; null, the default, checks nothing. A host gives it QueryBudget.IN_PROCESS_DEFAULT by default (wow.query.budgets.in-process.*), so in-process code is bounded as a request is.
the execution timeout of a query whose entry has no budget (QueryEntry.UNBOUNDED, or every in-process query when inProcess is null: every query has one); null runs such a query without one.
rejects an QueryEntry.HTTP query on a built-in model whose QueryScope.authenticated does not pin the model's required scope. A declared scope (a tenant header, say) still filters the query but never satisfies this check. Off by default: the declared scope is trusted.
rejects QueryEntry.UNSPECIFIED queries, so every caller must say whether it is HTTP or in-process. Off by default: an unspecified entry is treated as in-process, which keeps existing QueryGateway callers working unchanged.
Functions
The entry the query runs under, after this policy accepted it.
The execution timeout of entry's queries: its budget's, or inProcessTimeout for an entry without one.