Longest I have spent on a ship is 6 months. The longest without being in port was 17 days, if I remember correctly.
I would only get bored with some of or all of my fellow passengers. But not with the voyage.
Good for the soul. leaving port is a magical experience, esp. if you have never been to the next port. It's all about the future not the past or present.