org.jboss.ejb3.cache
Interface LongevityCache<T extends Identifiable>

All Superinterfaces:
Cache<T>
All Known Implementing Classes:
SimpleLongevityCache

public interface LongevityCache<T extends Identifiable>
extends Cache<T>

An longevity cache keeps hold over an object for use with multiple operations. Thus where a normal cache only allows: get, release, get, release. The longevity cache allows: get, finished, get, finished, release.

Version:
$Revision: 69058 $
Author:
Carlo de Wolf

Method Summary
 void finished(T obj)
          Signal the finish of the current operation on the object.
 
Methods inherited from interface org.jboss.ejb3.cache.Cache
create, get, peek, release, remove, start, stop
 

Method Detail

finished

void finished(T obj)
Signal the finish of the current operation on the object. The object will remain in use, but is ready to be used for a new operation.

Parameters:
obj -


Copyright © 2010 JBoss, a division of Red Hat, Inc.. All Rights Reserved.