def calculateStrategy(selectSupplier: IntSupplier, notBlockForIo: Boolean): Int
The SelectStrategy can be used to steer the outcome of a potential select call.
The SelectStrategy can be used to steer the outcome of a potential select call.
Value parameters
notBlockForIo
true if blocking for IO is not allowed.
selectSupplier
The supplier with the result of a select result.
Attributes
Returns
SelectStrategy.SELECT if the next step should be blocking select SelectStrategy.CONTINUE if the next step should be to not select but rather jump back to the IO loop and try again. Any value >= 0 is treated as an indicator that work needs to be done.