Generalizing the running vacuum energy model and comparing with the entropic-force models