XNIO API 2.1.0.CR2

org.jboss.xnio
Class XnioConfiguration

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

public final class XnioConfiguration
extends Object

A configuration for an XNIO provider.

Since:
1.2

Constructor Summary
XnioConfiguration()
          Construct an uninitialized instance.
 
Method Summary
 Executor getExecutor()
          Get the default listener executor for the XNIO provider instance.
 List<MBeanServer> getMBeanServers()
          Get the MBeanServers that the provider should register with.
 String getName()
          Get the common name of the XNIO provider instance.
 OptionMap getOptionMap()
          Get the option map associated with this configuration.
 ThreadFactory getThreadFactory()
          Get the thread factory to use for any created threads.
 void setExecutor(Executor executor)
          Set the default listener executor for the XNIO provider instance.
 void setMBeanServers(List<MBeanServer> mBeanServers)
          Set the MBeanServers that the provider should register with.
 void setName(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(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 List<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(List<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 ThreadFactory getThreadFactory()
Get the thread factory to use for any created threads.

Returns:
the thread factory

setThreadFactory

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

Parameters:
threadFactory - the thread factory

getExecutor

public Executor getExecutor()
Get the default listener executor for the XNIO provider instance.

Returns:
the default listener executor

setExecutor

public void setExecutor(Executor executor)
Set the default listener executor for the XNIO provider instance.

Parameters:
executor - the default listener executor

getName

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

Returns:
the name

setName

public void setName(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.1.0.CR2

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