i think that HIV lasts for about half a minute, while hepatitis lasts for a couple of hours at least
basically, if he shoots outside any kind of mucous membrane (your anus), it doesn't matter, there's literally no change of getting infected so long as you don't do anything with the sperm afterward