|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.ejb3.cache.impl.EntryStateCache<T>
public class EntryStateCache<T extends Identifiable>
Comment
Constructor Summary | |
---|---|
EntryStateCache(StatefulObjectFactory<T> factory)
|
Method Summary | |
---|---|
T |
create(Class<?>[] initTypes,
Object[] initValues)
Create a new object. |
T |
get(Object key)
Get the specified object from cache. |
T |
peek(Object key)
Peek at an object which might be in use. |
void |
release(T obj)
Release the object from use. |
void |
remove(Object key)
Remove the specified object from cache. |
void |
start()
Start the cache. |
void |
stop()
Stop the cache. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public EntryStateCache(StatefulObjectFactory<T> factory)
Method Detail |
---|
public T create(Class<?>[] initTypes, Object[] initValues)
Cache
create
in interface Cache<T extends Identifiable>
public T get(Object key) throws javax.ejb.NoSuchEJBException
Cache
get
in interface Cache<T extends Identifiable>
key
- the identifier of the object
javax.ejb.NoSuchEJBException
- if the object does not existpublic T peek(Object key) throws javax.ejb.NoSuchEJBException
Cache
peek
in interface Cache<T extends Identifiable>
key
- the identifier of the object
javax.ejb.NoSuchEJBException
- if the object does not existpublic void release(T obj)
Cache
release
in interface Cache<T extends Identifiable>
obj
- the objectpublic void remove(Object key)
Cache
remove
in interface Cache<T extends Identifiable>
key
- the identifier of the objectpublic void start()
Cache
start
in interface Cache<T extends Identifiable>
public void stop()
Cache
stop
in interface Cache<T extends Identifiable>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |