站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBoss RULES 4.0.0.11754MR2 API 英文版文档

AbstractFactHandleFactory (Drools 4.0.0.11754MR2 API) - JBoss RULES 4.0.0.11754MR2 API 英文版文档


org.drools.common
Class AbstractFactHandleFactory

java.lang.Object
  extended by org.drools.common.AbstractFactHandleFactory
All Implemented Interfaces:
Serializable, FactHandleFactory
Direct Known Subclasses:
Jsr94FactHandleFactory, ReteooFactHandleFactory

public abstract class AbstractFactHandleFactory
extends Object
implements FactHandleFactory

See Also:
Serialized Form

Field Summary
protected  PrimitiveLongStack factHandlePool
           
 
Constructor Summary
AbstractFactHandleFactory()
           
 
Method Summary
 void destroyFactHandle(InternalFactHandle factHandle)
           
 void increaseFactHandleRecency(InternalFactHandle factHandle)
          Increases the recency of the FactHandle
protected  InternalFactHandle newFactHandle(long id, Object object)
           
protected abstract  InternalFactHandle newFactHandle(long id, Object object, long recency)
           
 InternalFactHandle newFactHandle(Object object)
          Construct a handle with a new id.
abstract  FactHandleFactory newInstance()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.drools.spi.FactHandleFactory
getFactHandleType
 

Field Detail

factHandlePool

protected final PrimitiveLongStack factHandlePool
Constructor Detail

AbstractFactHandleFactory

public AbstractFactHandleFactory()
Method Detail

newFactHandle

public final InternalFactHandle newFactHandle(Object object)
Description copied from interface: FactHandleFactory
Construct a handle with a new id.

Specified by:
newFactHandle in interface FactHandleFactory
Returns:
The handle.

newFactHandle

protected final InternalFactHandle newFactHandle(long id,
                                                 Object object)

newFactHandle

protected abstract InternalFactHandle newFactHandle(long id,
                                                    Object object,
                                                    long recency)

increaseFactHandleRecency

public final void increaseFactHandleRecency(InternalFactHandle factHandle)
Description copied from interface: FactHandleFactory
Increases the recency of the FactHandle

Specified by:
increaseFactHandleRecency in interface FactHandleFactory
Parameters:
factHandle - The fact handle to have its recency increased.

destroyFactHandle

public void destroyFactHandle(InternalFactHandle factHandle)
Specified by:
destroyFactHandle in interface FactHandleFactory

newInstance

public abstract FactHandleFactory newInstance()
Specified by:
newInstance in interface FactHandleFactory
Returns:
a fresh instance of the fact handle factory, with any IDs reset etc.


Copyright © 2001-2007 JBoss Inc.. All Rights Reserved.