org.elasticsearch.transport
Class VoidTransportResponseHandler

java.lang.Object
  extended by org.elasticsearch.transport.VoidTransportResponseHandler
All Implemented Interfaces:
TransportResponseHandler<VoidStreamable>

public class VoidTransportResponseHandler
extends Object
implements TransportResponseHandler<VoidStreamable>


Field Summary
static VoidTransportResponseHandler INSTANCE_SAME
           
 
Constructor Summary
VoidTransportResponseHandler(String executor)
           
 
Method Summary
 String executor()
           
 void handleException(TransportException exp)
           
 void handleResponse(VoidStreamable response)
           
 VoidStreamable newInstance()
          creates a new instance of the return type from the remote call.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INSTANCE_SAME

public static final VoidTransportResponseHandler INSTANCE_SAME
Constructor Detail

VoidTransportResponseHandler

public VoidTransportResponseHandler(String executor)
Method Detail

newInstance

public VoidStreamable newInstance()
Description copied from interface: TransportResponseHandler
creates a new instance of the return type from the remote call. called by the infra before de-serializing the response.

Specified by:
newInstance in interface TransportResponseHandler<VoidStreamable>
Returns:
a new response copy.

handleResponse

public void handleResponse(VoidStreamable response)
Specified by:
handleResponse in interface TransportResponseHandler<VoidStreamable>

handleException

public void handleException(TransportException exp)
Specified by:
handleException in interface TransportResponseHandler<VoidStreamable>

executor

public String executor()
Specified by:
executor in interface TransportResponseHandler<VoidStreamable>


Copyright © 2009-2012. All Rights Reserved.