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 Externalizable
IOException
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
IOException
ClassNotFoundException
public int size()
size
in interface ObjectStore
public boolean isEmpty()
isEmpty
in interface ObjectStore
public void clear()
clear
in interface ObjectStore
public Object getObjectForHandle(InternalFactHandle handle)
getObjectForHandle
in interface ObjectStore
public InternalFactHandle reconnect(InternalFactHandle handle)
reconnect
in interface ObjectStore
public InternalFactHandle getHandleForObject(Object object)
getHandleForObject
in interface ObjectStore
public InternalFactHandle getHandleForObjectIdentity(Object object)
getHandleForObjectIdentity
in interface ObjectStore
public void updateHandle(InternalFactHandle handle, Object object)
updateHandle
in interface ObjectStore
public void addHandle(InternalFactHandle handle, Object object)
addHandle
in interface ObjectStore
public void removeHandle(InternalFactHandle handle)
removeHandle
in interface ObjectStore
public Iterator<Object> iterateObjects()
ObjectStore
iterateObjects
in interface ObjectStore
public Iterator<Object> iterateObjects(org.kie.api.runtime.ObjectFilter filter)
ObjectStore
iterateObjects
in interface ObjectStore
public Iterator<InternalFactHandle> iterateFactHandles()
ObjectStore
iterateFactHandles
in interface ObjectStore
public Iterator<InternalFactHandle> iterateFactHandles(Class<?> clazz)
public Iterator<InternalFactHandle> iterateFactHandles(org.kie.api.runtime.ObjectFilter filter)
ObjectStore
iterateFactHandles
in interface ObjectStore
public Iterator<Object> iterateNegObjects(org.kie.api.runtime.ObjectFilter filter)
iterateNegObjects
in interface ObjectStore
public Iterator<InternalFactHandle> iterateNegFactHandles(org.kie.api.runtime.ObjectFilter filter)
iterateNegFactHandles
in interface ObjectStore
public ClassAwareObjectStore.SingleClassStore getOrCreateClassStore(Class<?> clazz)
public boolean clearClassStore(Class<?> clazz)
Copyright © 2001–2018 JBoss by Red Hat. All rights reserved.