RetryPolicy.Instance#shouldRetry needs to be public to be accessible from dataflow packages