Interface EntryFactory.InvalidationStrategy

  • Enclosing class:

    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.
        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.
        entry - The affected NodeEntry.