Interface RequestPrioritizer<R>

Type Parameters:
R - type of the request
All Known Implementing Classes:
ManagementRequestPrioritizer

public interface RequestPrioritizer<R>
Assigns a priority to a request. All prioritizers are inspected and the first one that returns true for appliesTo(Object) is taken.

If no prioritizer applies to a given request, the priority of RequestPriority.NORMAL is assumed. By default, a prioritizer for non-application endpoints is present, which assigns them the RequestPriority.CRITICAL priority.

An implementation must be a CDI bean, otherwise it is ignored. CDI typesafe resolution rules must be followed. That is, if multiple implementations are provided with different Priority values, only the implementations with the highest priority are retained.