How long is too long?

4 years? 6 years? 10 years?

How long is too long in one job?