org.alfresco.repo.avm
Class NOOPLookupCache

java.lang.Object
  extended by org.alfresco.repo.avm.NOOPLookupCache
All Implemented Interfaces:
LookupCache

public class NOOPLookupCache
extends java.lang.Object
implements LookupCache

A NO-OP implementation of AVM path lookup cache


Constructor Summary
NOOPLookupCache()
          Make one up.
 
Method Summary
 org.alfresco.repo.avm.Lookup lookup(AVMStore store, int version, SimplePath path, boolean write, boolean includeDeleted)
          Lookup a path.
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NOOPLookupCache

public NOOPLookupCache()
Make one up.

Method Detail

lookup

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

Specified by:
lookup in interface LookupCache
Parameters:
store - The AVMStore.
version - The versions.
path - The path we are looking up.
write - Whether this is a write lookup.
includeDeleted -
Returns:

onWrite

public void onWrite(java.lang.String storeName)
Description copied from interface: LookupCache
Called when a simple write operation occurs. This invalidates all read lookups and all layered lookups.

Specified by:
onWrite in interface LookupCache

onDelete

public void onDelete(java.lang.String storeName)
Description copied from interface: LookupCache
Called when a delete has occurred in a store. This invalidates both reads and write lookups in that store.

Specified by:
onDelete in interface LookupCache

onSnapshot

public void onSnapshot(java.lang.String storeName)
Description copied from interface: LookupCache
Called when a snapshot occurs in a store. This invalidates write lookups. Read lookups stay untouched.

Specified by:
onSnapshot in interface LookupCache

reset

public void reset()
Description copied from interface: LookupCache
Full reset of cache.

Specified by:
reset in interface LookupCache


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