Package io.quarkus.load.shedding.runtime
Class HttpRequestClassifier
java.lang.Object
io.quarkus.load.shedding.runtime.HttpRequestClassifier
- All Implemented Interfaces:
RequestClassifier<io.vertx.core.http.HttpServerRequest>
@Singleton
public class HttpRequestClassifier
extends Object
implements RequestClassifier<io.vertx.core.http.HttpServerRequest>
-
Field Summary
Fields inherited from interface io.quarkus.load.shedding.RequestClassifier
MAX_COHORT, MIN_COHORT -
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
HttpRequestClassifier
public HttpRequestClassifier()
-
-
Method Details
-
appliesTo
Description copied from interface:RequestClassifierReturns whether this request classifier applies to givenrequest.- Specified by:
appliesToin interfaceRequestClassifier<io.vertx.core.http.HttpServerRequest>- Parameters:
request- the request, nevernull- Returns:
- whether this request classifier applies to given
request
-
cohort
public int cohort(io.vertx.core.http.HttpServerRequest request) Description copied from interface:RequestClassifierReturns the cohort to which the givenrequestbelongs.- Specified by:
cohortin interfaceRequestClassifier<io.vertx.core.http.HttpServerRequest>- Parameters:
request- the request, nevernull- Returns:
- the cohort to which the given
requestbelongs
-