Skip to content

Commit

Permalink
Update javadoc for NioEventLoop.setRatio() #9481 (#9484)
Browse files Browse the repository at this point in the history
Motivation:

Improve java apidoc for NioEventLoop.setRatio

Modification:

javadoc

Result:

Fixes #9481
  • Loading branch information
lwlee2608 authored and normanmaurer committed Aug 21, 2019
1 parent 1460797 commit cb739b2
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -344,8 +344,10 @@ public int getIoRatio() {
}

/**
* Sets the percentage of the desired amount of time spent for I/O in the event loop. The default value is
* {@code 50}, which means the event loop will try to spend the same amount of time for I/O as for non-I/O tasks.
* Sets the percentage of the desired amount of time spent for I/O in the event loop. Value range from 1-100.
* The default value is {@code 50}, which means the event loop will try to spend the same amount of time for I/O
* as for non-I/O tasks. The lower the number the more time can be spent on non-I/O tasks. If value set to
* {@code 100}, this feature will be disabled and event loop will not attempt to balance I/O and non-I/O tasks.
*/
public void setIoRatio(int ioRatio) {
if (ioRatio <= 0 || ioRatio > 100) {
Expand Down

0 comments on commit cb739b2

Please sign in to comment.