On a summer Sunday, Justice Thomas D. Raffaele of State Supreme Court in Queens would usually be in a bathing suit at the Jersey Shore. Instead, on July 24, the Sunday that New York’s same-sex marriage law goes into effect, he plans to be in his judicial robes at the city clerk’s office on Queens Boulevard, ready to marry people, possibly in large numbers.

“I’ve heard there are a lot of people who are very excited,” he said.

As one of several dozen judges across the state who have volunteered to play an official role in the new law’s first day, Justice Raffaele is part of one of the most unusual judicial mobilizations in years. From Buffalo to the Bronx and pretty much everywhere else in New York, judges are signing up for rare Sunday duty.

If same-sex couples want to marry that Sunday, only judges would have the authority to dispense with the 24-hour waiting period required by law. And those judges could then officiate on the spot.

Another of the volunteer judges, Sherry Klein Heitler of State Supreme Court in Manhattan, said she was expecting something of a party at the city clerk’s office. “I think there will be a lot of people,” Justice Heitler said. “I think there will be a lot of emotion. I think there will be a lot of happy tears.”