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;
}
Aggregations