Package org.drools.core.spi
Interface FactHandleFactory
-
- All Known Implementing Classes:
AbstractFactHandleFactory,ReteooFactHandleFactory
public interface FactHandleFactoryFactory Interface to return newFactHandles
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidclear(long id, long counter)voiddestroyFactHandle(InternalFactHandle factHandle)voiddoRecycleIds(Collection<Long> usedIds)Class<?>getFactHandleType()longgetId()longgetNextId()longgetNextRecency()longgetRecency()voidincreaseFactHandleRecency(InternalFactHandle factHandle)Increases the recency of the FactHandleInternalFactHandlenewFactHandle(long id, Object object, long recency, ObjectTypeConf conf, ReteEvaluator reteEvaluator, WorkingMemoryEntryPoint wmEntryPoint)InternalFactHandlenewFactHandle(Object object, ObjectTypeConf conf, ReteEvaluator reteEvaluator, WorkingMemoryEntryPoint wmEntryPoint)Construct a handle with a new id.InternalFactHandlenewInitialFactHandle(WorkingMemoryEntryPoint wmEntryPoint)FactHandleFactorynewInstance()FactHandleFactorynewInstance(long id, long counter)voidstopRecycleIds()
-
-
-
Method Detail
-
newFactHandle
InternalFactHandle newFactHandle(Object object, ObjectTypeConf conf, ReteEvaluator reteEvaluator, WorkingMemoryEntryPoint wmEntryPoint)
Construct a handle with a new id.- Returns:
- The handle.
-
newFactHandle
InternalFactHandle newFactHandle(long id, Object object, long recency, ObjectTypeConf conf, ReteEvaluator reteEvaluator, WorkingMemoryEntryPoint wmEntryPoint)
-
newInitialFactHandle
InternalFactHandle newInitialFactHandle(WorkingMemoryEntryPoint wmEntryPoint)
-
increaseFactHandleRecency
void increaseFactHandleRecency(InternalFactHandle factHandle)
Increases the recency of the FactHandle- Parameters:
factHandle- The fact handle to have its recency increased.
-
destroyFactHandle
void destroyFactHandle(InternalFactHandle factHandle)
-
newInstance
FactHandleFactory newInstance()
- Returns:
- a fresh instance of the fact handle factory, with any IDs reset etc.
-
newInstance
FactHandleFactory newInstance(long id, long counter)
-
getFactHandleType
Class<?> getFactHandleType()
-
getId
long getId()
-
getRecency
long getRecency()
-
getNextId
long getNextId()
-
getNextRecency
long getNextRecency()
-
clear
void clear(long id, long counter)
-
doRecycleIds
void doRecycleIds(Collection<Long> usedIds)
-
stopRecycleIds
void stopRecycleIds()
-
-