io.netty.channel.MultithreadEventLoopGroup Java Examples

The following examples show how to use io.netty.channel.MultithreadEventLoopGroup. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: SpigotMiscUtils.java    From ProtocolSupport with GNU Affero General Public License v3.0 5 votes vote down vote up
@Override
public MultithreadEventLoopGroup getServerIOEventLoopGroup() {
	try {
		if (Epoll.isAvailable() && getServer().k()) {
			return ServerConnection.b.a();
		} else {
			return ServerConnection.a.a();
		}
	} catch (SecurityException | IllegalArgumentException e) {
		throw new RuntimeException("Unable to get event loop", e);
	}
}
 
Example #2
Source File: EtcdClient.java    From etcd-java with Apache License 2.0 4 votes vote down vote up
@VisibleForTesting
MultithreadEventLoopGroup getInternalExecutor() {
    return internalExecutor;
}
 
Example #3
Source File: PlatformUtils.java    From ProtocolSupport with GNU Affero General Public License v3.0 votes vote down vote up
public MultithreadEventLoopGroup getServerIOEventLoopGroup();