Search in sources :

Example 1 with JdkSelectorImpl

use of org.webpieces.nio.impl.jdk.JdkSelectorImpl in project webpieces by deanhiller.

the class ChannelManagerFactory method createFactory.

/**
 * All Keys(and some values) to put in the map variable can be found
 * as the constants in ChannelManaagerFactory
 */
public static ChannelManagerFactory createFactory(MeterRegistry metrics) {
    SelectorProvider provider = SelectorProvider.provider();
    JdkSelectorImpl selector = new JdkSelectorImpl(provider);
    return createFactory(selector, metrics);
}
Also used : SelectorProvider(java.nio.channels.spi.SelectorProvider) JdkSelectorImpl(org.webpieces.nio.impl.jdk.JdkSelectorImpl)

Aggregations

SelectorProvider (java.nio.channels.spi.SelectorProvider)1 JdkSelectorImpl (org.webpieces.nio.impl.jdk.JdkSelectorImpl)1