Module org.elasticsearch.compute
Class BatchExchangeStatusResponse
java.lang.Object
org.elasticsearch.transport.TransportMessage
org.elasticsearch.transport.TransportResponse
org.elasticsearch.compute.operator.exchange.BatchExchangeStatusResponse
- All Implemented Interfaces:
Writeable,org.elasticsearch.core.RefCounted
Response sent from server to client indicating batch exchange completion status.
A
null failure means success; a non-null failure means the server encountered an error.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V> -
Field Summary
Fields inherited from interface org.elasticsearch.core.RefCounted
ALWAYS_REFERENCED -
Constructor Summary
ConstructorsConstructorDescriptionCreate a success response.BatchExchangeStatusResponse(Exception failure) Create a failure response. -
Method Summary
Methods inherited from class org.elasticsearch.transport.TransportMessage
decRef, hasReferences, incRef, tryIncRefMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.elasticsearch.core.RefCounted
mustIncRef
-
Constructor Details
-
BatchExchangeStatusResponse
public BatchExchangeStatusResponse()Create a success response. -
BatchExchangeStatusResponse
Create a failure response. -
BatchExchangeStatusResponse
- Throws:
IOException
-
-
Method Details
-
writeTo
- Throws:
IOException
-
isSuccess
public boolean isSuccess() -
getFailure
-