org.elasticsearch.transport
Interface TransportResponseHandler<T extends Streamable>

All Known Implementing Classes:
BaseTransportResponseHandler, FutureTransportResponseHandler, PlainTransportFuture, VoidTransportResponseHandler

public interface TransportResponseHandler<T extends Streamable>


Method Summary
 String executor()
           
 void handleException(TransportException exp)
           
 void handleResponse(T response)
           
 T newInstance()
          creates a new instance of the return type from the remote call.
 

Method Detail

newInstance

T newInstance()
creates a new instance of the return type from the remote call. called by the infra before de-serializing the response.

Returns:
a new response copy.

handleResponse

void handleResponse(T response)

handleException

void handleException(TransportException exp)

executor

String executor()


Copyright © 2009-2012. All Rights Reserved.