A class of Sparre Andersen risk process