public RetryState createRetryState ( RetryPolicy policy , MetricRecorder metricRecorder ) { if ( policy == null ) { return new RetryStateNullImpl ( ) ; } else { return new RetryStateImpl ( policy , metricRecorder ) ; } }
Create an object implementing Retry