Interface EntryFactory.InvalidationStrategy

  • Enclosing class:
    EntryFactory

    public static interface EntryFactory.InvalidationStrategy
    Strategy for invalidating item states
    • Method Detail

      • invalidate

        void invalidate​(HierarchyEntry entry,
                        boolean recursive)
        Invalidate underlying ItemState of this entry. Implementors may choose to delay the actual call to ItemState.invalidate() for this entry and for any of its child entries. They need to ensure however that applyPending(HierarchyEntry) properly invalidates the respective state when called.
        Parameters:
        entry - The HierarchyEntry to invalidate.
        recursive - Invalidate state of child entries if true.
      • applyPending

        void applyPending​(HierarchyEntry entry)
        Apply any pending invalidation of the underlying ItemState of this entry.
        Parameters:
        entry - The affected NodeEntry.