org.apache.jackrabbit.jcr2spi.hierarchy
Interface EntryFactory.InvalidationStrategy

Enclosing class:
EntryFactory

public static interface EntryFactory.InvalidationStrategy

Strategy for invalidating item states


Method Summary
 void applyPending(NodeEntry entry)
          Apply any pending invalidation of the underyling ItemState of this entry.
 void invalidate(NodeEntry entry, boolean recursive)
          Invalidate underlying ItemState of this entry.
 

Method Detail

invalidate

void invalidate(NodeEntry 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(NodeEntry) properly invalidates the respective state when called.

Parameters:
entry - The NodeEntry to invalidate.
recursive - Invalidate state of child entries if true.

applyPending

void applyPending(NodeEntry entry)
Apply any pending invalidation of the underyling ItemState of this entry.

Parameters:
entry - The affected NodeEntry.


Copyright © 2004-2010 The Apache Software Foundation. All Rights Reserved.