better toString
This commit is contained in:
parent
c4a49110ef
commit
bb8b5f9b76
|
@ -454,8 +454,9 @@ public class ManagedSelector extends AbstractLifeCycle implements Runnable, Dump
|
||||||
public String toString()
|
public String toString()
|
||||||
{
|
{
|
||||||
Selector selector = _selector;
|
Selector selector = _selector;
|
||||||
return String.format("%s keys=%d selected=%d",
|
return String.format("%s id=%s keys=%d selected=%d",
|
||||||
super.toString(),
|
super.toString(),
|
||||||
|
_id,
|
||||||
selector != null && selector.isOpen() ? selector.keys().size() : -1,
|
selector != null && selector.isOpen() ? selector.keys().size() : -1,
|
||||||
selector != null && selector.isOpen() ? selector.selectedKeys().size() : -1);
|
selector != null && selector.isOpen() ? selector.selectedKeys().size() : -1);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue