How will hotel quarantine work?

The UK looks set to introduce quarantine hotels for travellers coming into thecountry, but how will it work and who will it apply to?