My california kingsnake, about 1 1/2 yrs old, has stopped eatting. The last time he ate was about 3 months ago. I know they can go for a while without not eating, but how long????

I have tried going back to fuzzies, pinkies, even a live mouse, but nothing interests him.

How long should I wait before I take it to a vet?