程序包 | 说明 |
---|---|
org.jboss.netty.channel.socket.nio |
NIO-based socket channel
API implementation - recommended for a large number of connections (>= 1000).
|
org.jboss.netty.channel.socket.oio |
Old blocking I/O based socket channel API implementation - recommended for
a small number of connections (< 1000).
|
org.jboss.netty.util |
Utility classes used across multiple packages.
|
限定符和类型 | 方法和说明 |
---|---|
protected ThreadRenamingRunnable |
NioServerBoss.newThreadRenamingRunnable(int id,
ThreadNameDeterminer determiner) |
protected ThreadRenamingRunnable |
NioClientBoss.newThreadRenamingRunnable(int id,
ThreadNameDeterminer determiner) |
构造器和说明 |
---|
NioClientBossPool(java.util.concurrent.Executor bossExecutor,
int bossCount,
Timer timer,
ThreadNameDeterminer determiner)
Create a new instance
|
NioServerBossPool(java.util.concurrent.Executor bossExecutor,
int bossCount,
ThreadNameDeterminer determiner)
Create a new instance
|
NioWorker(java.util.concurrent.Executor executor,
ThreadNameDeterminer determiner) |
NioWorkerPool(java.util.concurrent.Executor workerExecutor,
int workerCount,
ThreadNameDeterminer determiner) |
构造器和说明 |
---|
OioClientSocketChannelFactory(java.util.concurrent.Executor workerExecutor,
ThreadNameDeterminer determiner)
Creates a new instance.
|
OioDatagramChannelFactory(java.util.concurrent.Executor workerExecutor,
ThreadNameDeterminer determiner)
Creates a new instance.
|
OioServerSocketChannelFactory(java.util.concurrent.Executor bossExecutor,
java.util.concurrent.Executor workerExecutor,
ThreadNameDeterminer determiner)
Creates a new instance.
|
限定符和类型 | 字段和说明 |
---|---|
static ThreadNameDeterminer |
ThreadNameDeterminer.CURRENT
ThreadNameDeterminer that rejects the proposed thread name and
retains the current one. |
static ThreadNameDeterminer |
ThreadNameDeterminer.PROPOSED
ThreadNameDeterminer that accepts the proposed thread name
as is. |
限定符和类型 | 方法和说明 |
---|---|
static ThreadNameDeterminer |
ThreadRenamingRunnable.getThreadNameDeterminer()
Returns the
ThreadNameDeterminer which overrides the proposed
new thread name. |
限定符和类型 | 方法和说明 |
---|---|
static void |
ThreadRenamingRunnable.setThreadNameDeterminer(ThreadNameDeterminer threadNameDeterminer)
Sets the
ThreadNameDeterminer which overrides the proposed new
thread name. |
构造器和说明 |
---|
HashedWheelTimer(java.util.concurrent.ThreadFactory threadFactory,
ThreadNameDeterminer determiner,
long tickDuration,
java.util.concurrent.TimeUnit unit,
int ticksPerWheel)
Creates a new timer.
|
ThreadRenamingRunnable(java.lang.Runnable runnable,
java.lang.String proposedThreadName,
ThreadNameDeterminer determiner)
Creates a new instance which wraps the specified
runnable
and changes the thread name to the specified thread name when the
specified runnable is running. |