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
ConstructorDescriptionDataTunnelStatusHandler
(Consumer<RpcException> consumer, SendingAccountor sendingAccountor) -
Method Summary
Modifier and TypeMethodDescriptionvoid
failed
(RpcException ex) Called when an error occurred while waiting for the RPC outcome.void
Called when the sending thread is interrupted.void
success
(BitData.AckWithCredit value, io.netty.buffer.ByteBuf buffer)
-
Constructor Details
-
DataTunnelStatusHandler
-
-
Method Details
-
failed
Description copied from interface:RpcOutcomeListener
Called when an error occurred while waiting for the RPC outcome.- Specified by:
failed
in interfaceRpcOutcomeListener<BitData.AckWithCredit>
-
success
- Specified by:
success
in interfaceRpcOutcomeListener<BitData.AckWithCredit>
-
interrupted
Description copied from interface:RpcOutcomeListener
Called when the sending thread is interrupted. Possible when the fragment is cancelled due to query cancellations or failures.- Specified by:
interrupted
in interfaceRpcOutcomeListener<BitData.AckWithCredit>
-