XNIO API 2.0.2.GA

org.jboss.xnio
Class XnioConfiguration

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

public final class XnioConfiguration
extends java.lang.Object

A configuration for an XNIO provider.

Since:
1.2

Constructor Summary
XnioConfiguration()
          Construct an uninitialized instance.
 
Method Summary
 java.util.concurrent.Executor getExecutor()
          Get the default handler executor for the XNIO provider instance.
 java.util.List<javax.management.MBeanServer> getMBeanServers()
          Get the MBeanServers that the provider should register with.
 java.lang.String getName()
          Get the common name of the XNIO provider instance.
 OptionMap getOptionMap()
          Get the option map associated with this configuration.
 java.util.concurrent.ThreadFactory getThreadFactory()
          Get the thread factory to use for any created threads.
 void setExecutor(java.util.concurrent.Executor executor)
          Set the default hander executor for the XNIO provider instance.
 void setMBeanServers(java.util.List<javax.management.MBeanServer> mBeanServers)
          Set the MBeanServers that the provider should register with.
 void setName(java.lang.String name)
          Set the common name of the XNIO provider instance.
 void setOptionMap(OptionMap optionMap)
          Set the option map associated with this configuration.
 void setThreadFactory(java.util.concurrent.ThreadFactory threadFactory)
          Set the thread factory to use for any created threads.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XnioConfiguration

public XnioConfiguration()
Construct an uninitialized instance.

Method Detail

getMBeanServers

public java.util.List<javax.management.MBeanServer> getMBeanServers()
Get the MBeanServers that the provider should register with. A null value indicates that the provider should attempt autodetection, based on the value of the xnio.agentid system property.

Returns:
the list of MBean servers, or null to indicate autodetection

setMBeanServers

public void setMBeanServers(java.util.List<javax.management.MBeanServer> mBeanServers)
Set the MBeanServers that the provider should register with. A null value indicates that the provider should attempt autodetection, based on the value of the xnio.agentid system property.

Parameters:
mBeanServers - the list of MBean servers, or null to indicate autodetection

getThreadFactory

public java.util.concurrent.ThreadFactory getThreadFactory()
Get the thread factory to use for any created threads.

Returns:
the thread factory

setThreadFactory

public void setThreadFactory(java.util.concurrent.ThreadFactory threadFactory)
Set the thread factory to use for any created threads.

Parameters:
threadFactory - the thread factory

getExecutor

public java.util.concurrent.Executor getExecutor()
Get the default handler executor for the XNIO provider instance.

Returns:
the default handler executor

setExecutor

public void setExecutor(java.util.concurrent.Executor executor)
Set the default hander executor for the XNIO provider instance.

Parameters:
executor - the default handler executor

getName

public java.lang.String getName()
Get the common name of the XNIO provider instance.

Returns:
the name

setName

public void setName(java.lang.String name)
Set the common name of the XNIO provider instance.

Parameters:
name - the name

getOptionMap

public OptionMap getOptionMap()
Get the option map associated with this configuration.

Returns:
the option map

setOptionMap

public void setOptionMap(OptionMap optionMap)
Set the option map associated with this configuration.

Parameters:
optionMap - the option map

XNIO API 2.0.2.GA

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