org.drools.spi
Interface FactHandleFactory

All Known Implementing Classes:
AbstractFactHandleFactory, Jsr94FactHandleFactory, 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(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.

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-2013 JBoss Inc.. All Rights Reserved.