private void scheduleShareGroupSessionTimeout(
        String groupId,
        String memberId,
        int sessionTimeoutMs
    ) {
        timer.schedule(
            groupSessionTimeoutKey(groupId, memberId),
            sessionTimeoutMs,
            TimeUnit.MILLISECONDS,
            true,
            () -> shareGroupFenceMemberOperation(groupId, memberId, "the member session expired.")
        );
    }
Schedules (or reschedules) the session timeout for the share group member.

@param groupId       The group id.
@param memberId      The member id.
group-coordinator/src/main/java/org/apache/kafka/coordinator/group/GroupMetadataManager.java