I've read that UHT milk is pasteurized by heating the milk to a high temperature (e.g. 135 degrees Celsius / 275 °F) for an extremely short period — around 1–2 seconds.
But this glosses over the question of how quickly the milk cools down — surely the milk doesn't cool down instantly, so it must spend a bit of time at 134, then 133 (271 °F) and so on until it gets down to the temperature of the fridge.
So: how quickly is the milk cooled down, and how do they do it?