public static void invokeInboundNow(final HandlerContext ctx, final InboundMessageEvent<?> event) {
        try {
            ((InboundHandler) ctx.handler()).handleInbound(ctx, event);
        } catch (final Throwable t) {
            notifyHandlerException(ctx, event, t);
        }
    }
Most of the code references the pipeline design of
<a href="https://github.com/netty/netty">Netty</a>.

@author jiachun.fjc
jraft-rheakv/rheakv-core/src/main/java/com/alipay/sofa/jraft/rhea/util/pipeline/HandlerInvokerUtil.java