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()Called when an operator complete for waiting msg releasevoidfailed(RpcException ex) Called when an error occurred while waiting for the RPC outcome.voidCalled when the sending thread is interrupted.voidsuccess(BitData.AckWithCredit value, io.netty.buffer.ByteBuf buffer)
-
Constructor Details
-
DataTunnelStatusHandler
-
-
Method Details
-
failed
Description copied from interface:RpcOutcomeListenerCalled when an error occurred while waiting for the RPC outcome.- Specified by:
failedin interfaceRpcOutcomeListener<BitData.AckWithCredit>- Parameters:
ex-
-
success
- Specified by:
successin interfaceRpcOutcomeListener<BitData.AckWithCredit>
-
interrupted
Description copied from interface:RpcOutcomeListenerCalled when the sending thread is interrupted. Possible when the fragment is cancelled due to query cancellations or failures.- Specified by:
interruptedin interfaceRpcOutcomeListener<BitData.AckWithCredit>
-
complete
public void complete()Description copied from interface:RpcOutcomeListenerCalled when an operator complete for waiting msg release- Specified by:
completein interfaceRpcOutcomeListener<BitData.AckWithCredit>
-