All long haul jets have crew rest areas but, having stayed in then myself, I'm not sure if they have sufficient space for multiple crews e.g you would probably need three sets of people on the flight deck unless they rotate the first set back in.
Critical parts of the flight (such as take off and landing) will have the two most senior pilots in command, but less demanding parts in cruise, one of the second officers will be backing up one of the senior crew while the other 2 crew members have mandated rest.
Because these are 'hot bunks', you only need 2 available for the flight crew at any time. I assume the cabin crew have a similar rotation system.