The 39-year-old Jamaican has played in 284 ODIs and needs 273 runs to become the 14th man, and the second West Indian after Brian Lara, to reach 10,000 in ODIs.
Gayle said: "In 50-over cricket, definitely the World Cup (is the end). I'm looking to draw the line there. Let the youngsters have some fun and I can sit back in the party stand and watch them.
"It is a big year for me, to be honest. I hope 2019 can finish for me on a great note."
His average in the ODIs is 37.12, with 23 centuries and the highest score of 215, ahead of the five-match series against England that begins on Wednesday.
After those matches and three Twenty20 games, the West Indies take part in an ODI tri-series with Ireland and Bangladesh in May before the World Cup which starts later that month. He is expected to continue playing in the Twenty20 format.