|
Drools :: Core 6.1.0.Beta1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.drools.core.SessionConfiguration
public class SessionConfiguration
SessionConfiguration
A class to store Session related configuration. It must be used at session instantiation time
or not used at all.
This class will automatically load default values from system properties, so if you want to set
a default configuration value for all your new sessions, you can simply set the property as
a System property.
After the Session is created, it makes the configuration immutable and there is no way to make it
mutable again. This is to avoid inconsistent behavior inside session.
NOTE: This API is under review and may change in the future.
drools.keepReference =
Constructor Summary
SessionConfiguration()
Creates a new session configuration with default configuration options.
SessionConfiguration(ClassLoader... classLoader)
SessionConfiguration(Properties properties)
Creates a new session configuration using the provided properties
as configuration options.
Method Summary
voidaddDefaultProperties(Properties properties)
BeliefSystemTypegetBeliefSystemType()
ClockTypegetClockType()
CommandServicegetCommandService(org.kie.internal.KnowledgeBase kbase,
org.kie.api.runtime.Environment environment)
static SessionConfigurationgetDefaultInstance()
org.kie.internal.runtime.conf.ForceEagerActivationFiltergetForceEagerActivationFilter()
<T extends org.kie.api.runtime.conf.SingleValueKieSessionOption>
TgetOption(Class<T> option)
<T extends org.kie.api.runtime.conf.MultiValueKieSessionOption>
TgetOption(Class<T> option,
String key)
StringgetProcessInstanceManagerFactory()
StringgetProperty(String name)
org.kie.api.runtime.conf.QueryListenerOptiongetQueryListenerOption()
StringgetSignalManagerFactory()
org.kie.api.runtime.conf.TimedRuleExecutionFiltergetTimedRuleExecutionFilter()
TimerJobFactoryManagergetTimerJobFactoryManager()
TimerJobFactoryTypegetTimerJobFactoryType()
Map<String,org.kie.api.runtime.process.WorkItemHandler>getWorkItemHandlers()
Map<String,org.kie.api.runtime.process.WorkItemHandler>getWorkItemHandlers(Map<String,Object> params)
WorkItemManagerFactorygetWorkItemManagerFactory()
booleanisImmutable()
Returns true if this configuration object is immutable or false otherwise.
booleanisKeepReference()
voidmakeImmutable()
Makes the configuration object immutable.
TimerServicenewTimerService()
voidreadExternal(ObjectInput in)
voidsetBeliefSystemType(BeliefSystemType beliefSystemType)
voidsetClockType(ClockType clockType)
voidsetForceEagerActivationFilter(org.kie.internal.runtime.conf.ForceEagerActivationFilter forceEagerActivationFilter)
voidsetKeepReference(boolean keepReference)
<T extends org.kie.api.runtime.conf.KieSessionOption>
voidsetOption(T option)
voidsetProperty(String name,
String value)
voidsetTimedRuleExecutionFilter(org.kie.api.runtime.conf.TimedRuleExecutionFilter timedRuleExecutionFilter)
voidwriteExternal(ObjectOutput out)
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Constructor Detail
SessionConfiguration
public SessionConfiguration(Properties properties)
properties -
SessionConfiguration
public SessionConfiguration()
SessionConfiguration
public SessionConfiguration(ClassLoader... classLoader)
Method Detail
writeExternal
public void writeExternal(ObjectOutput out)
throws IOException
writeExternal in interface Externalizable
IOException
getDefaultInstance
public static SessionConfiguration getDefaultInstance()
readExternal
public void readExternal(ObjectInput in)
throws IOException,
ClassNotFoundException
readExternal in interface Externalizable
IOException
ClassNotFoundException
addDefaultProperties
public void addDefaultProperties(Properties properties)
setProperty
public void setProperty(String name,
String value)
setProperty in interface org.kie.api.PropertiesConfiguration
getProperty
public String getProperty(String name)
getProperty in interface org.kie.api.PropertiesConfiguration
makeImmutable
public void makeImmutable()
isImmutable
public boolean isImmutable()
setKeepReference
public void setKeepReference(boolean keepReference)
isKeepReference
public boolean isKeepReference()
setForceEagerActivationFilter
public void setForceEagerActivationFilter(org.kie.internal.runtime.conf.ForceEagerActivationFilter forceEagerActivationFilter)
getForceEagerActivationFilter
public org.kie.internal.runtime.conf.ForceEagerActivationFilter getForceEagerActivationFilter()
setTimedRuleExecutionFilter
public void setTimedRuleExecutionFilter(org.kie.api.runtime.conf.TimedRuleExecutionFilter timedRuleExecutionFilter)
getTimedRuleExecutionFilter
public org.kie.api.runtime.conf.TimedRuleExecutionFilter getTimedRuleExecutionFilter()
getBeliefSystemType
public BeliefSystemType getBeliefSystemType()
setBeliefSystemType
public void setBeliefSystemType(BeliefSystemType beliefSystemType)
getClockType
public ClockType getClockType()
setClockType
public void setClockType(ClockType clockType)
getTimerJobFactoryManager
public TimerJobFactoryManager getTimerJobFactoryManager()
getTimerJobFactoryType
public TimerJobFactoryType getTimerJobFactoryType()
getWorkItemHandlers
public Map<String,org.kie.api.runtime.process.WorkItemHandler> getWorkItemHandlers()
getWorkItemHandlers
public Map<String,org.kie.api.runtime.process.WorkItemHandler> getWorkItemHandlers(Map<String,Object> params)
getWorkItemManagerFactory
public WorkItemManagerFactory getWorkItemManagerFactory()
getProcessInstanceManagerFactory
public String getProcessInstanceManagerFactory()
getSignalManagerFactory
public String getSignalManagerFactory()
getCommandService
public CommandService getCommandService(org.kie.internal.KnowledgeBase kbase,
org.kie.api.runtime.Environment environment)
newTimerService
public TimerService newTimerService()
getOption
public <T extends org.kie.api.runtime.conf.SingleValueKieSessionOption> T getOption(Class<T> option)
getOption in interface org.kie.api.runtime.conf.KieSessionOptionsConfiguration
getOption
public <T extends org.kie.api.runtime.conf.MultiValueKieSessionOption> T getOption(Class<T> option,
String key)
getOption in interface org.kie.api.runtime.conf.KieSessionOptionsConfiguration
setOption
public <T extends org.kie.api.runtime.conf.KieSessionOption> void setOption(T option)
setOption in interface org.kie.api.runtime.conf.KieSessionOptionsConfiguration
getQueryListenerOption
public org.kie.api.runtime.conf.QueryListenerOption getQueryListenerOption()
Overview
Package
Class
Use
Tree
Deprecated
Index
Help
Drools :: Core 6.1.0.Beta1
PREV CLASS
NEXT CLASS
FRAMES
NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD
DETAIL: FIELD | CONSTR | METHOD
Copyright © 2001-2014 JBoss by Red Hat. All Rights Reserved.