org.alfresco.repo.search.impl.lucene.index
Interface ReferenceCounting

All Known Implementing Classes:
ReferenceCountingReadOnlyIndexReaderFactory.ReferenceCountingReadOnlyIndexReader

public interface ReferenceCounting

Reference counting and caching for read only index access. When this object is invalid for reuse and all referees have gone the implementation should release all resources held (release the caches, close the index readers etc)


Method Summary
 long getCreationTime()
           
 java.lang.String getId()
          Get the id for this reader.
 int getReferenceCount()
          Get the number of references
 java.util.List getReferences()
           
 boolean isInvalidForReuse()
          Determine if valid for reuse
 void setInvalidForReuse()
          Mark is invalid for reuse.
 

Method Detail

getCreationTime

long getCreationTime()

getReferences

java.util.List getReferences()

getReferenceCount

int getReferenceCount()
Get the number of references

Returns:

setInvalidForReuse

void setInvalidForReuse()
                        throws java.io.IOException
Mark is invalid for reuse.

Throws:
java.io.IOException

isInvalidForReuse

boolean isInvalidForReuse()
Determine if valid for reuse

Returns:

getId

java.lang.String getId()
Get the id for this reader.

Returns:


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