org.drools.spi
Interface FactHandleFactory

All Known Implementing Classes:
AbstractFactHandleFactory, ReteooFactHandleFactory

public interface FactHandleFactory

Factory Interface to return new FactHandles

See Also:
FactHandle

Method Summary
 void clear(int id, long counter)
           
 void destroyFactHandle(InternalFactHandle factHandle)
           
 AtomicInteger getAtomicId()
           
 AtomicLong getAtomicRecency()
           
 Class<?> getFactHandleType()
           
 int getId()
           
 long getRecency()
           
 void increaseFactHandleRecency(InternalFactHandle factHandle)
          Increases the recency of the FactHandle
 InternalFactHandle newFactHandle(int id, Object object, long recency, ObjectTypeConf conf, InternalWorkingMemory workingMemory, org.drools.runtime.rule.WorkingMemoryEntryPoint wmEntryPoint)
           
 InternalFactHandle newFactHandle(Object object, ObjectTypeConf conf, InternalWorkingMemory workingMemory, org.drools.runtime.rule.WorkingMemoryEntryPoint wmEntryPoint)
          Construct a handle with a new id.
 FactHandleFactory newInstance()
           
 FactHandleFactory newInstance(int id, long counter)
           
 

Method Detail

newFactHandle

InternalFactHandle newFactHandle(Object object,
                                 ObjectTypeConf conf,
                                 InternalWorkingMemory workingMemory,
                                 org.drools.runtime.rule.WorkingMemoryEntryPoint wmEntryPoint)
Construct a handle with a new id.

Returns:
The handle.

newFactHandle

InternalFactHandle newFactHandle(int id,
                                 Object object,
                                 long recency,
                                 ObjectTypeConf conf,
                                 InternalWorkingMemory workingMemory,
                                 org.drools.runtime.rule.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(int id,
                              long counter)

getFactHandleType

Class<?> getFactHandleType()

getId

int getId()

getRecency

long getRecency()

getAtomicId

AtomicInteger getAtomicId()

getAtomicRecency

AtomicLong getAtomicRecency()

clear

void clear(int id,
           long counter)


Copyright © 2001-2012 JBoss by Red Hat. All Rights Reserved.