public class StatusHandler extends Object implements RpcOutcomeListener<GeneralRPCProtos.Ack>
| Constructor and Description |
|---|
StatusHandler(Consumer<RpcException> consumer,
SendingAccountor sendingAccountor) |
| Modifier and Type | Method and Description |
|---|---|
void |
failed(RpcException ex)
Called when an error occurred while waiting for the RPC outcome.
|
void |
interrupted(InterruptedException e)
Called when the sending thread is interrupted.
|
void |
success(GeneralRPCProtos.Ack value,
io.netty.buffer.ByteBuf buffer) |
public StatusHandler(Consumer<RpcException> consumer, SendingAccountor sendingAccountor)
public void failed(RpcException ex)
RpcOutcomeListenerfailed in interface RpcOutcomeListener<GeneralRPCProtos.Ack>public void success(GeneralRPCProtos.Ack value, io.netty.buffer.ByteBuf buffer)
success in interface RpcOutcomeListener<GeneralRPCProtos.Ack>public void interrupted(InterruptedException e)
RpcOutcomeListenerinterrupted in interface RpcOutcomeListener<GeneralRPCProtos.Ack>Copyright © 2021 The Apache Software Foundation. All rights reserved.