Class MapObjectStore

  • All Implemented Interfaces:
    java.io.Externalizable, java.io.Serializable, java.lang.Comparable<org.kie.api.internal.utils.KieService>, ObjectStore, org.kie.api.internal.utils.KieService
    Direct Known Subclasses:
    IdentityObjectStore

    public abstract class MapObjectStore
    extends java.lang.Object
    implements java.io.Externalizable, ObjectStore
    See Also:
    Serialized Form
    • Constructor Detail

      • MapObjectStore

        protected MapObjectStore​(java.util.Map<java.lang.Object,​InternalFactHandle> fhMap)
    • Method Detail

      • writeExternal

        public void writeExternal​(java.io.ObjectOutput out)
                           throws java.io.IOException
        Specified by:
        writeExternal in interface java.io.Externalizable
        Throws:
        java.io.IOException
      • readExternal

        public void readExternal​(java.io.ObjectInput in)
                          throws java.io.IOException,
                                 java.lang.ClassNotFoundException
        Specified by:
        readExternal in interface java.io.Externalizable
        Throws:
        java.io.IOException
        java.lang.ClassNotFoundException
      • iterateObjects

        public java.util.Iterator<java.lang.Object> 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 java.util.Iterator<java.lang.Object> iterateObjects​(org.kie.api.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 java.util.Iterator<InternalFactHandle> 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 java.util.Iterator<InternalFactHandle> iterateFactHandles​(org.kie.api.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
      • iterateNegObjects

        public java.util.Iterator<java.lang.Object> iterateNegObjects​(org.kie.api.runtime.ObjectFilter filter)
        Specified by:
        iterateNegObjects in interface ObjectStore
      • clearClassStore

        public boolean clearClassStore​(java.lang.Class<?> clazz)
        Specified by:
        clearClassStore in interface ObjectStore