A 23 year-old man has been jailed for more than four years following a violent attack in Hartlepool.