better toString

This commit is contained in:
Greg Wilkins 2015-02-19 15:39:36 +11:00
parent c4a49110ef
commit bb8b5f9b76
1 changed files with 2 additions and 1 deletions

View File

@ -454,8 +454,9 @@ public class ManagedSelector extends AbstractLifeCycle implements Runnable, Dump
public String toString()
{
Selector selector = _selector;
return String.format("%s keys=%d selected=%d",
return String.format("%s id=%s keys=%d selected=%d",
super.toString(),
_id,
selector != null && selector.isOpen() ? selector.keys().size() : -1,
selector != null && selector.isOpen() ? selector.selectedKeys().size() : -1);
}