Former Sunderland goalkeeper Craig Gordon is set to call time on his career and retire due to persistent injury problems.