Package org.drools.core.command.impl
Class ContextImplWithEviction
- java.lang.Object
-
- org.drools.core.command.impl.ContextImpl
-
- org.drools.core.command.impl.ContextImplWithEviction
-
- All Implemented Interfaces:
org.kie.api.runtime.Context,org.kie.internal.command.RegistryContext
public class ContextImplWithEviction extends ContextImpl
-
-
Field Summary
-
Fields inherited from class org.drools.core.command.impl.ContextImpl
ID_GENERATOR, REGISTRY
-
-
Constructor Summary
Constructors Constructor Description ContextImplWithEviction(String name, org.kie.internal.command.ContextManager manager)ContextImplWithEviction(String name, org.kie.internal.command.ContextManager manager, org.kie.api.runtime.Context delegate)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Objectget(String identifier)longgetEntryEvictionTime()Map<String,Long>getEvictionMap()longgetEvictionWakeUpTime()booleanisEvictionEnabled()voidset(String name, Object object)voidsetEntryEvictionTime(long entryEvictionTime)voidsetEvictionEnabled(boolean evictionEnabled)voidsetEvictionWakeUpTime(long evictionWakeUpTime)-
Methods inherited from class org.drools.core.command.impl.ContextImpl
getContextManager, getName, has, lookup, register, remove, toString
-
-
-
-
Method Detail
-
get
public Object get(String identifier)
- Specified by:
getin interfaceorg.kie.api.runtime.Context- Overrides:
getin classContextImpl
-
set
public void set(String name, Object object)
- Specified by:
setin interfaceorg.kie.api.runtime.Context- Overrides:
setin classContextImpl
-
getEvictionWakeUpTime
public long getEvictionWakeUpTime()
-
isEvictionEnabled
public boolean isEvictionEnabled()
-
setEvictionEnabled
public void setEvictionEnabled(boolean evictionEnabled)
-
getEntryEvictionTime
public long getEntryEvictionTime()
-
setEntryEvictionTime
public void setEntryEvictionTime(long entryEvictionTime)
-
setEvictionWakeUpTime
public void setEvictionWakeUpTime(long evictionWakeUpTime)
-
-