public class CustomTimeoutThrottleRequestFilter extends Object implements com.ning.http.client.filter.RequestFilter
RequestFilter
that throttles requests and blocks when the number of permits
is reached, waiting for the response to arrive before executing the next request.
This is based on com.ning.http.client.extra.ThrottleRequestFilter
from Async Http Client, but uses the
request timeout from each request.Constructor and Description |
---|
CustomTimeoutThrottleRequestFilter(int maxConnections) |
public CustomTimeoutThrottleRequestFilter(int maxConnections)
public com.ning.http.client.filter.FilterContext filter(com.ning.http.client.filter.FilterContext ctx) throws com.ning.http.client.filter.FilterException
filter
in interface com.ning.http.client.filter.RequestFilter
com.ning.http.client.filter.FilterException
Copyright © 2003–2016 MuleSoft, Inc.. All rights reserved.