Class TransportService.ContextRestoreResponseHandler<T extends TransportResponse>

java.lang.Object
org.elasticsearch.transport.TransportService.ContextRestoreResponseHandler<T>
All Implemented Interfaces:
Writeable.Reader<T>, TransportResponseHandler<T>
Enclosing class:
TransportService

public static final class TransportService.ContextRestoreResponseHandler<T extends TransportResponse> extends Object implements TransportResponseHandler<T>
This handler wrapper ensures that the response thread executes with the correct thread context. Before any of the handle methods are invoked we restore the context.