org.apache.servicemix.common.osgi
Class Configuration

java.lang.Object
  extended by org.apache.servicemix.common.osgi.Configuration

public class Configuration
extends java.lang.Object

Represents the configuration for the components that can be created from information in the OSGi ConfigAdmin.


Method Summary
 org.apache.servicemix.executors.impl.ExecutorConfig getExecutorConfig()
          Get the executor configuration object
static Configuration getInstance()
          Get the singleton configuration object instance
 void setAllowCoreThreadTimeOut(boolean timeout)
          Allow the core threads to time out
 void setCorePoolSize(int size)
          Set the core thread pool size
 void setKeepAliveTime(long time)
          Set the keep alive time on the executor
 void setMaximumPoolSize(int size)
          Set the maximum thread pool size
 void setQueueSize(int size)
          Set the executor queue size
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static final Configuration getInstance()
Get the singleton configuration object instance


setCorePoolSize

public void setCorePoolSize(int size)
Set the core thread pool size

See Also:
org.apache.servicemix.executors.impl.ExecutorConfig#setCorePoolSize(int)

setMaximumPoolSize

public void setMaximumPoolSize(int size)
Set the maximum thread pool size

See Also:
org.apache.servicemix.executors.impl.ExecutorConfig#setMaximumPoolSize(int)

setQueueSize

public void setQueueSize(int size)
Set the executor queue size

See Also:
org.apache.servicemix.executors.impl.ExecutorConfig#setQueueSize(int)

setAllowCoreThreadTimeOut

public void setAllowCoreThreadTimeOut(boolean timeout)
Allow the core threads to time out

See Also:
org.apache.servicemix.executors.impl.ExecutorConfig#setAllowCoreThreadTimeOut(boolean)

setKeepAliveTime

public void setKeepAliveTime(long time)
Set the keep alive time on the executor

See Also:
org.apache.servicemix.executors.impl.ExecutorConfig#setKeepAliveTime(long)

getExecutorConfig

public org.apache.servicemix.executors.impl.ExecutorConfig getExecutorConfig()
Get the executor configuration object



Copyright © 2005-2012 FuseSource. All Rights Reserved.