XNIO version 1.2.1.GA

org.jboss.xnio.nio
Class NioXnioConfiguration

java.lang.Object
  extended by org.jboss.xnio.XnioConfiguration
      extended by org.jboss.xnio.nio.NioXnioConfiguration

public final class NioXnioConfiguration
extends XnioConfiguration

Configuration for the NIO XNIO provider. The configuration items provided here are specific to the NIO provider.

Since:
1.2

Constructor Summary
NioXnioConfiguration()
           
 
Method Summary
 int getConnectSelectorThreads()
          Get the number of connect selector threads.
 Executor getExecutor()
          Get the executor to use for handler execution.
 int getReadSelectorThreads()
          Get the number of read selector threads.
 int getSelectorCacheSize()
          Get the size of the selector cache used for blocking I/O operations.
 ThreadFactory getSelectorThreadFactory()
          Get the thread factory to use for selector threads.
 int getWriteSelectorThreads()
          Get the number of write selector threads.
 void setConnectSelectorThreads(int connectSelectorThreads)
          Set the number of connect selector threads.
 void setExecutor(Executor executor)
          Set the executor to use for handler execution.
 void setReadSelectorThreads(int readSelectorThreads)
          Set the number of read selector threads.
 void setSelectorCacheSize(int selectorCacheSize)
          Set the size of the selector cache used for blocking I/O operations.
 void setSelectorThreadFactory(ThreadFactory selectorThreadFactory)
          Set the thread factory to use for selector threads.
 void setWriteSelectorThreads(int writeSelectorThreads)
          Set the number of read selector threads.
 
Methods inherited from class org.jboss.xnio.XnioConfiguration
getMBeanServers, getName, setMBeanServers, setName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NioXnioConfiguration

public NioXnioConfiguration()
Method Detail

getReadSelectorThreads

public int getReadSelectorThreads()
Get the number of read selector threads.

Returns:
the number of read selector threads

setReadSelectorThreads

public void setReadSelectorThreads(int readSelectorThreads)
Set the number of read selector threads.

Parameters:
readSelectorThreads - the number of read selector threads

getWriteSelectorThreads

public int getWriteSelectorThreads()
Get the number of write selector threads.

Returns:
the number of write selector threads

setWriteSelectorThreads

public void setWriteSelectorThreads(int writeSelectorThreads)
Set the number of read selector threads.

Parameters:
writeSelectorThreads - the number of write selector threads

getConnectSelectorThreads

public int getConnectSelectorThreads()
Get the number of connect selector threads. These threads are used to handle connect and accept events.

Returns:
the number of connect selector threads

setConnectSelectorThreads

public void setConnectSelectorThreads(int connectSelectorThreads)
Set the number of connect selector threads. These threads are used to handle connect and accept events.

Parameters:
connectSelectorThreads - the number of connect selector threads

getExecutor

public Executor getExecutor()
Get the executor to use for handler execution. If none is given, the direct executor is used.

Returns:
the executor

setExecutor

public void setExecutor(Executor executor)
Set the executor to use for handler execution. If none is given, the direct executor is used.

Parameters:
executor - the executor

getSelectorThreadFactory

public ThreadFactory getSelectorThreadFactory()
Get the thread factory to use for selector threads.

Returns:
the thread factory

setSelectorThreadFactory

public void setSelectorThreadFactory(ThreadFactory selectorThreadFactory)
Set the thread factory to use for selector threads.

Parameters:
selectorThreadFactory - the thread factory

getSelectorCacheSize

public int getSelectorCacheSize()
Get the size of the selector cache used for blocking I/O operations.

Returns:
the size of the selector cache

setSelectorCacheSize

public void setSelectorCacheSize(int selectorCacheSize)
Set the size of the selector cache used for blocking I/O operations.

Parameters:
selectorCacheSize - the size of the selector cache

XNIO version 1.2.1.GA

Copyright © 2008 JBoss, a division of Red Hat, Inc.