org.drools.common
Class SingleThreadedObjectStore

java.lang.Object
  extended by org.drools.common.SingleThreadedObjectStore
All Implemented Interfaces:
Externalizable, Serializable, ObjectStore

public class SingleThreadedObjectStore
extends Object
implements Externalizable, ObjectStore

See Also:
Serialized Form

Constructor Summary
SingleThreadedObjectStore()
           
SingleThreadedObjectStore(RuleBaseConfiguration conf, Lock lock)
           
 
Method Summary
 void addHandle(InternalFactHandle handle, Object object)
           
 void clear()
           
 InternalFactHandle getHandleForObject(Object object)
           
 InternalFactHandle getHandleForObjectIdentity(Object object)
           
 Object getObjectForHandle(org.drools.runtime.rule.FactHandle handle)
           
 boolean isEmpty()
           
 Iterator iterateFactHandles()
          This class is not thread safe, changes to the working memory during iteration may give unexpected results
 Iterator iterateFactHandles(org.drools.runtime.ObjectFilter filter)
          This class is not thread safe, changes to the working memory during iteration may give unexpected results
 Iterator iterateObjects()
          This class is not thread safe, changes to the working memory during iteration may give unexpected results
 Iterator iterateObjects(org.drools.runtime.ObjectFilter filter)
          This class is not thread safe, changes to the working memory during iteration may give unexpected results
 void readExternal(ObjectInput in)
           
 InternalFactHandle reconnect(org.drools.runtime.rule.FactHandle factHandle)
           
 void removeHandle(org.drools.runtime.rule.FactHandle handle)
           
 int size()
           
 void updateHandle(InternalFactHandle handle, Object object)
           
 void writeExternal(ObjectOutput out)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SingleThreadedObjectStore

public SingleThreadedObjectStore()

SingleThreadedObjectStore

public SingleThreadedObjectStore(RuleBaseConfiguration conf,
                                 Lock lock)
Method Detail

readExternal

public void readExternal(ObjectInput in)
                  throws IOException,
                         ClassNotFoundException
Specified by:
readExternal in interface Externalizable
Throws:
IOException
ClassNotFoundException

writeExternal

public void writeExternal(ObjectOutput out)
                   throws IOException
Specified by:
writeExternal in interface Externalizable
Throws:
IOException

size

public int size()
Specified by:
size in interface ObjectStore

isEmpty

public boolean isEmpty()
Specified by:
isEmpty in interface ObjectStore

clear

public void clear()
Specified by:
clear in interface ObjectStore

getObjectForHandle

public Object getObjectForHandle(org.drools.runtime.rule.FactHandle handle)
Specified by:
getObjectForHandle in interface ObjectStore

getHandleForObject

public InternalFactHandle getHandleForObject(Object object)
Specified by:
getHandleForObject in interface ObjectStore

reconnect

public InternalFactHandle reconnect(org.drools.runtime.rule.FactHandle factHandle)
Specified by:
reconnect in interface ObjectStore

getHandleForObjectIdentity

public InternalFactHandle getHandleForObjectIdentity(Object object)
Specified by:
getHandleForObjectIdentity in interface ObjectStore

updateHandle

public void updateHandle(InternalFactHandle handle,
                         Object object)
Specified by:
updateHandle in interface ObjectStore

addHandle

public void addHandle(InternalFactHandle handle,
                      Object object)
Specified by:
addHandle in interface ObjectStore

removeHandle

public void removeHandle(org.drools.runtime.rule.FactHandle handle)
Specified by:
removeHandle in interface ObjectStore

iterateObjects

public Iterator iterateObjects()
Description copied from interface: ObjectStore
This class is not thread safe, changes to the working memory during iteration may give unexpected results

Specified by:
iterateObjects in interface ObjectStore

iterateObjects

public Iterator iterateObjects(org.drools.runtime.ObjectFilter filter)
Description copied from interface: ObjectStore
This class is not thread safe, changes to the working memory during iteration may give unexpected results

Specified by:
iterateObjects in interface ObjectStore

iterateFactHandles

public Iterator iterateFactHandles()
Description copied from interface: ObjectStore
This class is not thread safe, changes to the working memory during iteration may give unexpected results

Specified by:
iterateFactHandles in interface ObjectStore

iterateFactHandles

public Iterator iterateFactHandles(org.drools.runtime.ObjectFilter filter)
Description copied from interface: ObjectStore
This class is not thread safe, changes to the working memory during iteration may give unexpected results

Specified by:
iterateFactHandles in interface ObjectStore


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