public final class RpcChannelFactory extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
RpcChannelFactory.ClientChannelId |
| Modifier and Type | Method and Description |
|---|---|
protected static io.netty.channel.EventLoopGroup |
createClientEventloopGroup(String name,
int workerNum) |
protected static Queue<io.netty.channel.EventLoopGroup> |
createClientEventloopGroups(RpcChannelFactory.ClientChannelId clientId,
int workerNum) |
static io.netty.bootstrap.ServerBootstrap |
createServerChannelFactory(String name,
int workerNum) |
static io.netty.channel.EventLoopGroup |
getSharedClientEventloopGroup()
make this factory static thus all clients can share its thread pool.
|
static io.netty.channel.EventLoopGroup |
getSharedClientEventloopGroup(int workerNum)
make this factory static thus all clients can share its thread pool.
|
static io.netty.channel.EventLoopGroup |
getSharedClientEventloopGroup(RpcChannelFactory.ClientChannelId clientId,
int workerNum)
This function return eventloopgroup by key.
|
protected static boolean |
isEventLoopGroupShuttingDown(io.netty.channel.EventLoopGroup eventLoopGroup) |
static void |
shutdownGracefully() |
public static io.netty.channel.EventLoopGroup getSharedClientEventloopGroup()
public static io.netty.channel.EventLoopGroup getSharedClientEventloopGroup(int workerNum)
workerNum - The number of workerspublic static io.netty.channel.EventLoopGroup getSharedClientEventloopGroup(RpcChannelFactory.ClientChannelId clientId, int workerNum)
clientId - workerNum - protected static boolean isEventLoopGroupShuttingDown(io.netty.channel.EventLoopGroup eventLoopGroup)
protected static Queue<io.netty.channel.EventLoopGroup> createClientEventloopGroups(RpcChannelFactory.ClientChannelId clientId, int workerNum)
protected static io.netty.channel.EventLoopGroup createClientEventloopGroup(String name, int workerNum)
public static io.netty.bootstrap.ServerBootstrap createServerChannelFactory(String name, int workerNum)
public static void shutdownGracefully()
Copyright © 2015 Apache Software Foundation. All Rights Reserved.