Made changes as per the review comments

Signed-off-by: Ravi Kumar <kumarravi1165@gmail.com>
This commit is contained in:
Ravi Kumar 2020-12-18 08:31:04 +05:30
parent a4dc95aa79
commit 433f612793
1 changed files with 4 additions and 4 deletions

View File

@ -39,7 +39,7 @@ import org.eclipse.jetty.util.component.Dumpable;
* queue even if the task did not fire, which provides a huge benefit in the performance * queue even if the task did not fire, which provides a huge benefit in the performance
* of garbage collection in young generation. * of garbage collection in young generation.
*/ */
@ManagedObject("A scheduler") @ManagedObject
public class ScheduledExecutorScheduler extends AbstractLifeCycle implements Scheduler, Dumpable public class ScheduledExecutorScheduler extends AbstractLifeCycle implements Scheduler, Dumpable
{ {
private final String name; private final String name;
@ -158,19 +158,19 @@ public class ScheduledExecutorScheduler extends AbstractLifeCycle implements Sch
} }
} }
@ManagedAttribute("name of scheduler") @ManagedAttribute("The name of the scheduler")
public String getName() public String getName()
{ {
return name; return name;
} }
@ManagedAttribute("is scheduler daemon") @ManagedAttribute("Whether the scheduler uses daemon threads")
public boolean isDaemon() public boolean isDaemon()
{ {
return daemon; return daemon;
} }
@ManagedAttribute("number of scheduler threads") @ManagedAttribute("The number of scheduler threads")
public int getThreads() public int getThreads()
{ {
return threads; return threads;