Package org.drools.core
Class SessionConfiguration
- java.lang.Object
-
- org.drools.core.BaseConfiguration<org.kie.api.runtime.conf.KieSessionOption,org.kie.api.runtime.conf.SingleValueKieSessionOption,org.kie.api.runtime.conf.MultiValueKieSessionOption>
-
- org.drools.core.SessionConfiguration
-
- All Implemented Interfaces:
java.io.Externalizable
,java.io.Serializable
,org.kie.api.conf.OptionsConfiguration<org.kie.api.runtime.conf.KieSessionOption,org.kie.api.runtime.conf.SingleValueKieSessionOption,org.kie.api.runtime.conf.MultiValueKieSessionOption>
,org.kie.api.PropertiesConfiguration
,org.kie.api.runtime.conf.KieSessionOptionsConfiguration
,org.kie.api.runtime.KieSessionConfiguration
,org.kie.internal.conf.InternalPropertiesConfiguration
public class SessionConfiguration extends BaseConfiguration<org.kie.api.runtime.conf.KieSessionOption,org.kie.api.runtime.conf.SingleValueKieSessionOption,org.kie.api.runtime.conf.MultiValueKieSessionOption> implements org.kie.api.runtime.KieSessionConfiguration, java.io.Externalizable
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static org.kie.api.conf.ConfigurationKey<SessionConfiguration>
KEY
-
Fields inherited from class org.drools.core.BaseConfiguration
compConfig
-
-
Constructor Summary
Constructors Constructor Description SessionConfiguration(org.kie.internal.conf.CompositeConfiguration<org.kie.api.runtime.conf.KieSessionOption,org.kie.api.runtime.conf.SingleValueKieSessionOption,org.kie.api.runtime.conf.MultiValueKieSessionOption> compConfig)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SessionConfiguration
addDefaultProperties(java.util.Properties properties)
TimerService
createTimerService()
boolean
equals(java.lang.Object o)
ClockType
getClockType()
java.lang.String
getInternalProperty(java.lang.String name)
<T extends org.kie.api.runtime.conf.SingleValueKieSessionOption>
TgetOption(org.kie.api.conf.OptionKey<T> option)
<T extends org.kie.api.runtime.conf.MultiValueKieSessionOption>
TgetOption(org.kie.api.conf.OptionKey<T> option, java.lang.String subKey)
<C extends org.kie.api.runtime.conf.MultiValueKieSessionOption>
java.util.Set<java.lang.String>getOptionSubKeys(org.kie.api.conf.OptionKey<C> optionKey)
org.kie.api.runtime.conf.PersistedSessionOption
getPersistedSessionOption()
org.kie.api.runtime.ExecutableRunner
getRunner(org.kie.api.KieBase kbase, org.kie.api.runtime.Environment environment)
TimerJobFactoryManager
getTimerJobFactoryManager()
TimerJobFactoryType
getTimerJobFactoryType()
int
hashCode()
boolean
hasPersistedSessionOption()
boolean
isKeepReference()
void
readExternal(java.io.ObjectInput in)
void
setClockType(ClockType clockType)
boolean
setInternalProperty(java.lang.String name, java.lang.String value)
void
setKeepReference(boolean keepReference)
<T extends org.kie.api.runtime.conf.KieSessionOption>
voidsetOption(T option)
void
setTimerJobFactoryType(TimerJobFactoryType timerJobFactoryType)
void
writeExternal(java.io.ObjectOutput out)
-
Methods inherited from class org.drools.core.BaseConfiguration
as, checkCanChange, getChainedProperties, getClassLoader, getProperties, getProperty, getPropertyValue, isImmutable, makeImmutable, setClassLoader, setProperty
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
-
-
-
Field Detail
-
KEY
public static final org.kie.api.conf.ConfigurationKey<SessionConfiguration> KEY
-
-
Method Detail
-
writeExternal
public void writeExternal(java.io.ObjectOutput out) throws java.io.IOException
- Specified by:
writeExternal
in interfacejava.io.Externalizable
- Overrides:
writeExternal
in classBaseConfiguration<org.kie.api.runtime.conf.KieSessionOption,org.kie.api.runtime.conf.SingleValueKieSessionOption,org.kie.api.runtime.conf.MultiValueKieSessionOption>
- Throws:
java.io.IOException
-
readExternal
public void readExternal(java.io.ObjectInput in) throws java.io.IOException, java.lang.ClassNotFoundException
- Specified by:
readExternal
in interfacejava.io.Externalizable
- Overrides:
readExternal
in classBaseConfiguration<org.kie.api.runtime.conf.KieSessionOption,org.kie.api.runtime.conf.SingleValueKieSessionOption,org.kie.api.runtime.conf.MultiValueKieSessionOption>
- Throws:
java.io.IOException
java.lang.ClassNotFoundException
-
setOption
public final <T extends org.kie.api.runtime.conf.KieSessionOption> void setOption(T option)
- Specified by:
setOption
in interfaceorg.kie.api.conf.OptionsConfiguration<org.kie.api.runtime.conf.KieSessionOption,org.kie.api.runtime.conf.SingleValueKieSessionOption,org.kie.api.runtime.conf.MultiValueKieSessionOption>
-
getOption
public final <T extends org.kie.api.runtime.conf.SingleValueKieSessionOption> T getOption(org.kie.api.conf.OptionKey<T> option)
- Specified by:
getOption
in interfaceorg.kie.api.conf.OptionsConfiguration<org.kie.api.runtime.conf.KieSessionOption,org.kie.api.runtime.conf.SingleValueKieSessionOption,org.kie.api.runtime.conf.MultiValueKieSessionOption>
-
getOption
public final <T extends org.kie.api.runtime.conf.MultiValueKieSessionOption> T getOption(org.kie.api.conf.OptionKey<T> option, java.lang.String subKey)
- Specified by:
getOption
in interfaceorg.kie.api.conf.OptionsConfiguration<org.kie.api.runtime.conf.KieSessionOption,org.kie.api.runtime.conf.SingleValueKieSessionOption,org.kie.api.runtime.conf.MultiValueKieSessionOption>
-
getOptionSubKeys
public <C extends org.kie.api.runtime.conf.MultiValueKieSessionOption> java.util.Set<java.lang.String> getOptionSubKeys(org.kie.api.conf.OptionKey<C> optionKey)
- Specified by:
getOptionSubKeys
in interfaceorg.kie.api.conf.OptionsConfiguration<org.kie.api.runtime.conf.KieSessionOption,org.kie.api.runtime.conf.SingleValueKieSessionOption,org.kie.api.runtime.conf.MultiValueKieSessionOption>
-
setInternalProperty
public final boolean setInternalProperty(java.lang.String name, java.lang.String value)
- Specified by:
setInternalProperty
in interfaceorg.kie.internal.conf.InternalPropertiesConfiguration
-
getInternalProperty
public final java.lang.String getInternalProperty(java.lang.String name)
- Specified by:
getInternalProperty
in interfaceorg.kie.internal.conf.InternalPropertiesConfiguration
-
addDefaultProperties
public SessionConfiguration addDefaultProperties(java.util.Properties properties)
-
setKeepReference
public void setKeepReference(boolean keepReference)
-
isKeepReference
public boolean isKeepReference()
-
hasPersistedSessionOption
public boolean hasPersistedSessionOption()
-
getPersistedSessionOption
public org.kie.api.runtime.conf.PersistedSessionOption getPersistedSessionOption()
-
getClockType
public ClockType getClockType()
-
setClockType
public void setClockType(ClockType clockType)
-
getTimerJobFactoryType
public TimerJobFactoryType getTimerJobFactoryType()
-
setTimerJobFactoryType
public void setTimerJobFactoryType(TimerJobFactoryType timerJobFactoryType)
-
getTimerJobFactoryManager
public final TimerJobFactoryManager getTimerJobFactoryManager()
-
getRunner
public org.kie.api.runtime.ExecutableRunner getRunner(org.kie.api.KieBase kbase, org.kie.api.runtime.Environment environment)
-
createTimerService
public TimerService createTimerService()
-
equals
public final boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public final int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-