Package org.apache.drill.exec.ops
Class DataTunnelStatusHandler
java.lang.Object
org.apache.drill.exec.ops.DataTunnelStatusHandler
- All Implemented Interfaces:
RpcOutcomeListener<BitData.AckWithCredit>
public class DataTunnelStatusHandler
extends Object
implements RpcOutcomeListener<BitData.AckWithCredit>
Listener that keeps track of the status of batches sent, and updates the SendingAccountor when status is received
for each batch
-
Constructor Summary
ConstructorsConstructorDescriptionDataTunnelStatusHandler(Consumer<RpcException> consumer, SendingAccountor sendingAccountor) -
Method Summary
Modifier and TypeMethodDescriptionvoidcomplete()voidfailed(RpcException ex) voidvoidsuccess(BitData.AckWithCredit value, ByteBuf buffer)
-
Constructor Details
-
DataTunnelStatusHandler
-
-
Method Details
-
failed
- Specified by:
failedin interfaceRpcOutcomeListener<BitData.AckWithCredit>
-
success
- Specified by:
successin interfaceRpcOutcomeListener<BitData.AckWithCredit>
-
interrupted
- Specified by:
interruptedin interfaceRpcOutcomeListener<BitData.AckWithCredit>
-
complete
public void complete()- Specified by:
completein interfaceRpcOutcomeListener<BitData.AckWithCredit>
-