@ GuardedBy ( "lock" ) private boolean hasPotentialHedging ( State state ) { return state . winningSubstream == null && state . hedgingAttemptCount < hedgingPolicy . maxAttempts && ! state . hedgingFrozen ; }
only called when isHedging is true