Search in sources :

Example 1 with Poller

use of org.apache.tomcat.util.net.NioEndpoint.Poller in project tomcat by apache.

the class NioChannel method getAttachment.

public Object getAttachment() {
    Poller pol = getPoller();
    Selector sel = pol != null ? pol.getSelector() : null;
    SelectionKey key = sel != null ? getIOChannel().keyFor(sel) : null;
    Object att = key != null ? key.attachment() : null;
    return att;
}
Also used : SelectionKey(java.nio.channels.SelectionKey) Poller(org.apache.tomcat.util.net.NioEndpoint.Poller) Selector(java.nio.channels.Selector)

Aggregations

SelectionKey (java.nio.channels.SelectionKey)1 Selector (java.nio.channels.Selector)1 Poller (org.apache.tomcat.util.net.NioEndpoint.Poller)1