org.apache.openjpa.slice
Class ExecutorServiceValue
java.lang.Object
org.apache.openjpa.lib.conf.Value
org.apache.openjpa.lib.conf.ObjectValue
org.apache.openjpa.lib.conf.PluginValue
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
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.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 |
ExecutorServiceValue
public ExecutorServiceValue()
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-2009 Apache Software Foundation. All Rights Reserved.