presto-raptor-legacy/src/main/java/io/prestosql/plugin/raptor/legacy/storage/ShardRecoveryManager.java/ShardRecoveryManager/onSuccess
class ShardRecoveryManager:    private static <T> FutureCallback<T> failureCallback(Consumer<Throwable> callback)
    {
        return new FutureCallback<T>()
        {
            @Override
            public void onSuccess(T result) {}

            @Override
            public void onFailure(Throwable throwable)
            {
                callback.accept(throwable);
            }
        };
    }