Package org.apache.nemo.runtime.common
Interface NettyChannelImplementationSelector
-
- All Known Implementing Classes:
NativeChannelImplementationSelector
,NioChannelImplementationSelector
@DefaultImplementation(NativeChannelImplementationSelector.class) public interface NettyChannelImplementationSelector
Selects appropriateChannel
implementation.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.Class<? extends io.netty.channel.Channel>
getChannelClass()
java.lang.Class<? extends io.netty.channel.ServerChannel>
getServerChannelClass()
io.netty.channel.EventLoopGroup
newEventLoopGroup(int numThreads, java.util.concurrent.ThreadFactory threadFactory)
Creates a newEventLoopGroup
.
-
-
-
Method Detail
-
newEventLoopGroup
io.netty.channel.EventLoopGroup newEventLoopGroup(int numThreads, java.util.concurrent.ThreadFactory threadFactory)
Creates a newEventLoopGroup
.- Parameters:
numThreads
- the number of threadsthreadFactory
- theThreadFactory
- Returns:
- a new
EventLoopGroup
-
getServerChannelClass
java.lang.Class<? extends io.netty.channel.ServerChannel> getServerChannelClass()
- Returns:
- class for server channel
-
getChannelClass
java.lang.Class<? extends io.netty.channel.Channel> getChannelClass()
- Returns:
- class for channel
-
-