Joe Thornton and Patrick Marleau never swam in the unrestricted free-agent pool before.

The San Jose Sharks had paid them handsomely, were a contending team and never offered a salient reason to leave, especially because they loved living in the Bay Area. But they were both turning 38 before next season. The suddenly money, and especially term, were considerations for the Sharks as they shifted resources to younger members of their core.

So Joe Thornton and Patrick Marleau tested the waters. And one of them floated away.

“Obviously, I’m bummed that Patty’s not coming back. But he’s going to do great in Toronto. It’s going to be a good fit,” said Thornton, who officially announced his return to San Jose on a one-year deal worth $8 million on the same day that Marleau inked a three-year, $18.75 million deal with the Toronto Maple Leafs.

Neither player anticipated the level of interest in their services. Marleau had a dozen teams reach out, whittled that down to four teams and then was down to three suitors when he signed with the Leafs.

As for Thornton, well …

“I don’t know the number, but it was a shit ton,” he said, as Joe Thornton does.

Thornton had the easier call. Term was less important than geography. He listened to other offers, but never visited any other team. That included the Los Angeles Kings, where his friend Rob Blake is now the general manager, which made things a little surreal.

“Obviously. You’re good friends. It was nice getting courted by all these teams. I felt bad saying I’m going back to San Jose, but that’s where my heart is,” said Thornton.

“I feel like I’m a Shark. It was a fun process. But yeah, I’m coming back.”

View photos

But the process didn’t end with Thornton’s decision to remain resplendent in teal. He committed to San Jose, but didn’t commit to a salary. That was by design, because Patrick Marleau had yet to make up his mind. Thornton kept in contact with his friend, hoping some variable would change.

GM Doug Wilson said that there were “different versions depending on the circumstances” for Thornton’s contract. Those circumstances were tied to Marleau’s future.

“Jumbo gave us that flexibility. Without going into details, Joe deserves a huge compliment for what he was willing to do,” said Wilson. “He was so willing to do whatever it took. We agreed it was going to be a one-year contract, but his flexibly as far as compensation, to do anything to help, was at the forefront. He’s a special, special guy.”

Marleau’s decision involved money. The Sharks weren’t willing to go as high as other suitors. Marleau’s decision involved term. The Sharks weren’t willing to go three years with the veteran forward, partially because Logan Couture and Joe Pavelski would both need new contracts before that third year of a 40-year-old Marleau.

Their offer was two years and $10 million. Marleau could do better.

But better would also mean leaving San Jose, the only team he’s known since 1997, and leaving the Bay Area, where his family loved living, and leaving teammates like Thornton.

“I think I’ve worn out a few carpets pacing around the house and trying to make this decision over the last couple days,” said Marleau.

“Having my wife and four boys, it was extremely tough to finally pull the trigger and have them move to a new country, from one coast to the other. But everybody here in our house is extremely excited to be part of the Maple Leafs and where they’re going.”

The Leafs offered Marleau a unique opportunity, and not only because they were willing to pay him handsomely and guarantee a third contract year. They offered him the chance to play for Mike Babcock, the coach with whom he won two Olympic gold medals for Canada. They offered him a chance to play for a team on the rise and, in the process, be counted on as a veteran sage to one of the best collections of young forwards in the NHL.