Package org.drools.commands.impl
Class ContextImplWithEviction
- java.lang.Object
-
- org.drools.commands.impl.ContextImpl
-
- org.drools.commands.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.commands.impl.ContextImpl
ID_GENERATOR, REGISTRY
-
-
Constructor Summary
Constructors Constructor Description ContextImplWithEviction(java.lang.String name, org.kie.internal.command.ContextManager manager)ContextImplWithEviction(java.lang.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 java.lang.Objectget(java.lang.String identifier)longgetEntryEvictionTime()java.util.Map<java.lang.String,java.lang.Long>getEvictionMap()longgetEvictionWakeUpTime()booleanisEvictionEnabled()voidset(java.lang.String name, java.lang.Object object)voidsetEntryEvictionTime(long entryEvictionTime)voidsetEvictionEnabled(boolean evictionEnabled)voidsetEvictionWakeUpTime(long evictionWakeUpTime)-
Methods inherited from class org.drools.commands.impl.ContextImpl
getContextManager, getName, has, lookup, register, remove, toString
-
-
-
-
Constructor Detail
-
ContextImplWithEviction
public ContextImplWithEviction(java.lang.String name, org.kie.internal.command.ContextManager manager, org.kie.api.runtime.Context delegate)
-
ContextImplWithEviction
public ContextImplWithEviction(java.lang.String name, org.kie.internal.command.ContextManager manager)
-
-
Method Detail
-
get
public java.lang.Object get(java.lang.String identifier)
- Specified by:
getin interfaceorg.kie.api.runtime.Context- Overrides:
getin classContextImpl
-
set
public void set(java.lang.String name, java.lang.Object object)- Specified by:
setin interfaceorg.kie.api.runtime.Context- Overrides:
setin classContextImpl
-
getEvictionWakeUpTime
public long getEvictionWakeUpTime()
-
getEvictionMap
public java.util.Map<java.lang.String,java.lang.Long> getEvictionMap()
-
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)
-
-