public class ClassAwareObjectStore extends Object implements Externalizable, ObjectStore
| Modifier and Type | Class and Description |
|---|---|
static interface |
ClassAwareObjectStore.SingleClassStore |
| Constructor and Description |
|---|
ClassAwareObjectStore() |
ClassAwareObjectStore(RuleBaseConfiguration.AssertBehaviour assertBehaviour,
Lock lock) |
ClassAwareObjectStore(RuleBaseConfiguration conf,
Lock lock) |
| Modifier and Type | Method and Description |
|---|---|
void |
addHandle(InternalFactHandle handle,
Object object) |
void |
clear() |
boolean |
clearClassStore(Class<?> clazz) |
static Class<?> |
getActualClass(Object object) |
InternalFactHandle |
getHandleForObject(Object object) |
InternalFactHandle |
getHandleForObjectIdentity(Object object) |
Object |
getObjectForHandle(InternalFactHandle handle) |
ClassAwareObjectStore.SingleClassStore |
getOrCreateClassStore(Class<?> clazz) |
boolean |
isEmpty() |
Iterator<InternalFactHandle> |
iterateFactHandles()
This class is not thread safe, changes to the working memory during iteration may give unexpected results
|
Iterator<InternalFactHandle> |
iterateFactHandles(Class<?> clazz) |
Iterator<InternalFactHandle> |
iterateFactHandles(org.kie.api.runtime.ObjectFilter filter)
This class is not thread safe, changes to the working memory during iteration may give unexpected results
|
Iterator<InternalFactHandle> |
iterateNegFactHandles(org.kie.api.runtime.ObjectFilter filter) |
Iterator<Object> |
iterateNegObjects(org.kie.api.runtime.ObjectFilter filter) |
Iterator<Object> |
iterateObjects()
This class is not thread safe, changes to the working memory during iteration may give unexpected results
|
Iterator<Object> |
iterateObjects(Class<?> clazz) |
Iterator<Object> |
iterateObjects(org.kie.api.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(InternalFactHandle handle) |
void |
removeHandle(InternalFactHandle handle) |
int |
size() |
void |
updateHandle(InternalFactHandle handle,
Object object) |
void |
writeExternal(ObjectOutput out) |
public ClassAwareObjectStore()
public ClassAwareObjectStore(RuleBaseConfiguration conf, Lock lock)
public ClassAwareObjectStore(RuleBaseConfiguration.AssertBehaviour assertBehaviour, Lock lock)
public void writeExternal(ObjectOutput out) throws IOException
writeExternal in interface ExternalizableIOExceptionpublic void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal in interface ExternalizableIOExceptionClassNotFoundExceptionpublic int size()
size in interface ObjectStorepublic boolean isEmpty()
isEmpty in interface ObjectStorepublic void clear()
clear in interface ObjectStorepublic Object getObjectForHandle(InternalFactHandle handle)
getObjectForHandle in interface ObjectStorepublic InternalFactHandle reconnect(InternalFactHandle handle)
reconnect in interface ObjectStorepublic InternalFactHandle getHandleForObject(Object object)
getHandleForObject in interface ObjectStorepublic InternalFactHandle getHandleForObjectIdentity(Object object)
getHandleForObjectIdentity in interface ObjectStorepublic void updateHandle(InternalFactHandle handle, Object object)
updateHandle in interface ObjectStorepublic void addHandle(InternalFactHandle handle, Object object)
addHandle in interface ObjectStorepublic void removeHandle(InternalFactHandle handle)
removeHandle in interface ObjectStorepublic Iterator<Object> iterateObjects()
ObjectStoreiterateObjects in interface ObjectStorepublic Iterator<Object> iterateObjects(org.kie.api.runtime.ObjectFilter filter)
ObjectStoreiterateObjects in interface ObjectStorepublic Iterator<InternalFactHandle> iterateFactHandles()
ObjectStoreiterateFactHandles in interface ObjectStorepublic Iterator<InternalFactHandle> iterateFactHandles(Class<?> clazz)
public Iterator<InternalFactHandle> iterateFactHandles(org.kie.api.runtime.ObjectFilter filter)
ObjectStoreiterateFactHandles in interface ObjectStorepublic Iterator<Object> iterateNegObjects(org.kie.api.runtime.ObjectFilter filter)
iterateNegObjects in interface ObjectStorepublic Iterator<InternalFactHandle> iterateNegFactHandles(org.kie.api.runtime.ObjectFilter filter)
iterateNegFactHandles in interface ObjectStorepublic ClassAwareObjectStore.SingleClassStore getOrCreateClassStore(Class<?> clazz)
public boolean clearClassStore(Class<?> clazz)
Copyright © 2001–2018 JBoss by Red Hat. All rights reserved.