Package | Description |
---|---|
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.
|
Modifier and Type | Method and Description |
---|---|
protected ThreadRenamingRunnable |
NioServerBoss.newThreadRenamingRunnable(int id,
ThreadNameDeterminer determiner) |
protected ThreadRenamingRunnable |
NioClientBoss.newThreadRenamingRunnable(int id,
ThreadNameDeterminer determiner) |
Constructor and Description |
---|
NioClientBossPool(Executor bossExecutor,
int bossCount,
Timer timer,
ThreadNameDeterminer determiner)
Create a new instance
|
NioServerBossPool(Executor bossExecutor,
int bossCount,
ThreadNameDeterminer determiner)
Create a new instance
|
NioWorker(Executor executor,
ThreadNameDeterminer determiner) |
NioWorkerPool(Executor workerExecutor,
int workerCount,
ThreadNameDeterminer determiner) |
Constructor and Description |
---|
OioClientSocketChannelFactory(Executor workerExecutor,
ThreadNameDeterminer determiner)
Creates a new instance.
|
OioDatagramChannelFactory(Executor workerExecutor,
ThreadNameDeterminer determiner)
Creates a new instance.
|
OioServerSocketChannelFactory(Executor bossExecutor,
Executor workerExecutor,
ThreadNameDeterminer determiner)
Creates a new instance.
|
Modifier and Type | Field and Description |
---|---|
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. |
Modifier and Type | Method and Description |
---|---|
static ThreadNameDeterminer |
ThreadRenamingRunnable.getThreadNameDeterminer()
Returns the
ThreadNameDeterminer which overrides the proposed
new thread name. |
Modifier and Type | Method and Description |
---|---|
static void |
ThreadRenamingRunnable.setThreadNameDeterminer(ThreadNameDeterminer threadNameDeterminer)
Sets the
ThreadNameDeterminer which overrides the proposed new
thread name. |
Constructor and Description |
---|
HashedWheelTimer(ThreadFactory threadFactory,
ThreadNameDeterminer determiner,
long tickDuration,
TimeUnit unit,
int ticksPerWheel)
Creates a new timer.
|
ThreadRenamingRunnable(Runnable runnable,
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. |
Copyright © 2008-2015 The Netty Project. All Rights Reserved.