org.alfresco.repo.avm
Interface LookupCache

All Known Implementing Classes:
NOOPLookupCache, TransactionalLookupCache

public interface LookupCache

All lookup traffic goes through here.


Method Summary
 org.alfresco.repo.avm.Lookup lookup(AVMStore store, int version, SimplePath path, boolean write, boolean includeDeleted)
           
 void onDelete(java.lang.String storeName)
          Called when a delete has occurred in a store.
 void onSnapshot(java.lang.String storeName)
          Called when a snapshot occurs in a store.
 void onWrite(java.lang.String storeName)
          Called when a simple write operation occurs.
 void reset()
          Full reset of cache.
 

Method Detail

lookup

org.alfresco.repo.avm.Lookup lookup(AVMStore store,
                                    int version,
                                    SimplePath path,
                                    boolean write,
                                    boolean includeDeleted)

onWrite

void onWrite(java.lang.String storeName)
Called when a simple write operation occurs. This invalidates all read lookups and all layered lookups.


onDelete

void onDelete(java.lang.String storeName)
Called when a delete has occurred in a store. This invalidates both reads and write lookups in that store.


onSnapshot

void onSnapshot(java.lang.String storeName)
Called when a snapshot occurs in a store. This invalidates write lookups. Read lookups stay untouched.


reset

void reset()
Full reset of cache.



Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.