public static BackoffIdleStrategy createBackoffIdleStrategy(String config) {
        String[] args = config.split(",");
        if (args.length != ARG_COUNT) {
            throw new IllegalArgumentException(
                    format("Invalid backoff configuration '%s', 4 arguments expected", config));
        }
        long maxSpins = parseLong(args[ARG_MAX_SPINS]);
        long maxYields = parseLong(args[ARG_MAX_YIELDS]);
        long minParkPeriodNs = parseLong(args[ARG_MIN_PARK_PERIOD]);
        long maxParkNanos = parseLong(args[ARG_MAX_PARK_PERIOD]);
        return new BackoffIdleStrategy(maxSpins, maxYields, minParkPeriodNs, maxParkNanos);
    }
public static BackoffIdleStrategy createBackoffIdleStrategy ( String config ) { String [ ] args = config . split ( "," ) ; if ( args . length != ARG_COUNT ) { throw new IllegalArgumentException ( format ( "Invalid backoff configuration '%s', 4 arguments expected" , config ) ) ; } long maxSpins = parseLong ( args [ ARG_MAX_SPINS ] ) ; long maxYields = parseLong ( args [ ARG_MAX_YIELDS ] ) ; long minParkPeriodNs = parseLong ( args [ ARG_MIN_PARK_PERIOD ] ) ; long maxParkNanos = parseLong ( args [ ARG_MAX_PARK_PERIOD ] ) ; return new BackoffIdleStrategy ( maxSpins , maxYields , minParkPeriodNs , maxParkNanos ) ; }
Creates a new BackoffIdleStrategy.