Implemented HB messages flow in HeartBeatProcessor.
Node: synchronized access with lock.