org.apache.openjpa.slice
Class ExecutorServiceValue

java.lang.Object
  extended by org.apache.openjpa.lib.conf.Value
      extended by org.apache.openjpa.lib.conf.ObjectValue
          extended by org.apache.openjpa.lib.conf.PluginValue
              extended by org.apache.openjpa.slice.ExecutorServiceValue
All Implemented Interfaces:
Cloneable

public class ExecutorServiceValue
extends PluginValue

Value type used to represent a ExecutorService. This value controls the thread pool parameters. The thread pool is used to execute the queries.

Author:
Pinaki Poddar

Constructor Summary
ExecutorServiceValue()
           
 
Method Summary
 Object instantiate(Class type, Configuration conf, boolean fatal)
          Configures a cached or fixed thread pool.
 void setProperties(String props)
          The plugin properties.
 
Methods inherited from class org.apache.openjpa.lib.conf.PluginValue
getClassName, getInternalString, getProperties, getString, getValueType, isSingleton, objectChanged, set, setClassName, setInternalString, setString
 
Methods inherited from class org.apache.openjpa.lib.conf.ObjectValue
get, instantiate, newInstance, set, setInternalObject
 
Methods inherited from class org.apache.openjpa.lib.conf.Value
addListener, alias, alias, assertChangeable, clone, equals, getAliases, getDefault, getInstantiatingGetter, getListeners, getLoadKey, getOriginalValue, getProperty, getScope, hashCode, isAliasListComprehensive, isDynamic, removeListener, setAlias, setAlias, setAliases, setAliasListComprehensive, setDefault, setDynamic, setInstantiatingGetter, setLoadKey, setObject, setProperty, setScope, unalias, unalias, valueChanged
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExecutorServiceValue

public ExecutorServiceValue()
Method Detail

setProperties

public void setProperties(String props)
Description copied from class: PluginValue
The plugin properties.

Overrides:
setProperties in class PluginValue

instantiate

public Object instantiate(Class type,
                          Configuration conf,
                          boolean fatal)
Configures a cached or fixed thread pool.

Overrides:
instantiate in class PluginValue


Copyright © 2006-2010 Apache Software Foundation. All Rights Reserved.