public void setMetadataRefreshDeadline(
        long deadlineMs,
        int groupEpoch
    ) {
        this.metadataRefreshDeadline = new DeadlineAndEpoch(deadlineMs, groupEpoch);
    }
Updates the metadata refresh deadline.

@param deadlineMs The deadline in milliseconds.
@param groupEpoch The associated group epoch.
group-coordinator/src/main/java/org/apache/kafka/coordinator/group/modern/ModernGroup.java