Class ChildObserver<I extends TopLevelItem>

    • Method Detail

      • mayCreate

        public abstract boolean mayCreate​(String name)
        Checks whether we may create a new child of the given name.
        Parameters:
        name - a proposed Item.getName()
        Returns:
        true if you may go ahead and call created(I) (though you are not obliged to do so); false if you may not
      • created

        public abstract void created​(I child)
        Notify the observer that you did create a new child.
        Parameters:
        child - a newly constructed child item; do not call Item.onCreatedFromScratch() and try to avoid calls to Item.save()
      • completed

        public abstract void completed​(String name)
        Notify the observer that you have completed with the named child and other threads are now permitted to proceed with observations of the Item.getName().
        Parameters:
        name - the Item.getName().
        Since:
        6.0.0
      • observed

        public abstract Set<String> observed()
        Returns a copy of the item names that have been observed.
        Returns:
        a copy of the item names that have been observed.
        Since:
        5.14
      • orphaned

        public abstract Map<String,​I> orphaned()
        Returns a copy of the map of orphaned items keyed by name.
        Returns:
        a copy of the map of orphaned items keyed by name.
        Since:
        5.14