@Override
    public void doProcess(RemotingContext ctx, RemotingCommand msg) throws Exception {
        heartBeatTimes.incrementAndGet();
        java.text.DateFormat format1 = new java.text.SimpleDateFormat("yyyy-MM-dd hh:mm:ss");
        logger.warn("heart beat received:" + format1.format(new Date()));
    }
CustomHeartBeatProcessor

@author xiaomin.cxm
@version $Id: CustomHeartBeatProcessor.java, v 0.1 Apr 12, 2016 12:05:19 PM xiaomin.cxm Exp $
src/test/java/com/alipay/remoting/rpc/heartbeat/CustomHeartBeatProcessor.java