public class GremlinApacheHttpRequestInterceptor
extends java.lang.Object
implements org.apache.http.HttpRequestInterceptor
TrafficCoordinates
and for all calls to get
instrumented without a call-site reference.
It also transparently handles timeout calculations. It limits the amount of Gremlin latency to
connect timeout + get connection from pool timeout + socket timeout. It also ensures that a network call
plus Gremlin latency cannot exceed the configured network timeout.Constructor and Description |
---|
GremlinApacheHttpRequestInterceptor(GremlinService gremlinService,
java.lang.String httpClientName)
Construct on instance of this interceptor.
|
Modifier and Type | Method and Description |
---|---|
void |
process(org.apache.http.HttpRequest request,
org.apache.http.protocol.HttpContext context) |
public GremlinApacheHttpRequestInterceptor(GremlinService gremlinService, java.lang.String httpClientName)
gremlinService
- instance of GremlinService
that handles communication to GremlinhttpClientName
- name of HTTP client that will bse used when creating attackspublic void process(org.apache.http.HttpRequest request, org.apache.http.protocol.HttpContext context) throws org.apache.http.HttpException, java.io.IOException
process
in interface org.apache.http.HttpRequestInterceptor
org.apache.http.HttpException
java.io.IOException