Class ListDataStore<T>

    • Nested Class Summary

      • Nested classes/interfaces inherited from interface org.drools.ruleunits.api.DataSource

        org.drools.ruleunits.api.DataSource.Factory, org.drools.ruleunits.api.DataSource.FactoryHolder
    • Constructor Summary

      Constructors 
      Constructor Description
      ListDataStore()  
    • Constructor Detail

      • ListDataStore

        public ListDataStore()
    • Method Detail

      • add

        public org.drools.ruleunits.api.DataHandle add​(T t)
        Specified by:
        add in interface org.drools.ruleunits.api.DataStore<T>
      • createDataHandle

        protected org.drools.ruleunits.api.DataHandle createDataHandle​(T t)
      • findHandle

        public org.drools.ruleunits.api.DataHandle findHandle​(long id)
      • update

        public void update​(org.drools.ruleunits.api.DataHandle handle,
                           T object)
        Specified by:
        update in interface org.drools.ruleunits.api.DataStore<T>
      • remove

        public void remove​(Object object)
        Specified by:
        remove in interface org.drools.ruleunits.api.DataStore<T>
      • remove

        public void remove​(org.drools.ruleunits.api.DataHandle handle)
        Specified by:
        remove in interface org.drools.ruleunits.api.DataStore<T>
      • subscribe

        public void subscribe​(org.drools.ruleunits.api.DataProcessor processor)
        Specified by:
        subscribe in interface org.drools.ruleunits.api.DataSource<T>
      • delete

        public void delete​(RuleUnitInternalFactHandle fh,
                           org.drools.core.definitions.rule.impl.RuleImpl rule,
                           org.drools.core.reteoo.TerminalNode terminalNode,
                           org.kie.api.runtime.rule.FactHandle.State fhState)
        Specified by:
        delete in interface InternalStoreCallback