You get assigned by the company depending on operational requirements, although I know of some pilots who started the ball rolling by speaking with the CP about it.
Best to plan for 5 years. Bear in mind there is a lot of recruitment directly on to long haul.