What you can do is separate out the retry logic. You'll need some ancillary scaffolding: interface ThrowingTask { void run() throws ExecutionException; } ...
確定! 回上一頁