@Override
    public void removeClient(BaseSender msgSender) {
        if (msgSender == null
                || msgSender.getSenderFactory() == null
                || msgSender.getSenderFactory() != this) {
            return;
        }
        if (baseMsgSenderFactory == null) {
            return;
        }
        this.baseMsgSenderFactory.removeClient(msgSender);
    }
Multiple Instances Message Sender Factory

Used to define the Multiple instance sender factory
inlong-sdk/dataproxy-sdk/src/main/java/org/apache/inlong/sdk/dataproxy/MsgSenderMultiFactory.java