|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--net.walend.lyophil.memory.MemFreezer
A freezer for beans stored in a Map in jvm memory.
| Field Summary |
| Fields inherited from interface net.walend.lyophil.Freezer |
ROLE |
| Constructor Summary | |
MemFreezer()
|
|
| Method Summary | |
int |
count()
Returns the number of elements in this collection. |
void |
freeze(Freezable victem)
Freeze and thaw methods in MemFreezer always return the same instance of the object. |
SetOfFreezables |
getAll()
Returns a lyophilizer.collection.Set of Freezables. |
protected MemStorage |
getStorage()
|
boolean |
isAvailable(java.io.Serializable identifier)
Return true if identifier is available in the freezer |
boolean |
isEmpty()
Returns true if this collection contains no elements. |
Freezable |
thaw(java.io.Serializable identifier)
Freeze and thaw methods in MemFreezer always return the same instance of the object. |
void |
throwOut(java.io.Serializable identifier)
Remote the Freezable identified by identifier from the persistent storage |
void |
throwOutAll()
Throw out everything in the Freezer. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public MemFreezer()
| Method Detail |
protected MemStorage getStorage()
public void freeze(Freezable victem)
freeze in interface Freezer
public Freezable thaw(java.io.Serializable identifier)
throws NotInFreezerException
thaw in interface Freezer
public void throwOut(java.io.Serializable identifier)
throws NotInFreezerException
Freezer
throwOut in interface Freezerpublic boolean isAvailable(java.io.Serializable identifier)
Freezer
isAvailable in interface Freezerpublic void throwOutAll()
Freezer
throwOutAll in interface Freezerpublic SetOfFreezables getAll()
Freezer
getAll in interface Freezerpublic int count()
Freezer
count in interface Freezerpublic boolean isEmpty()
isEmpty in interface Freezer
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||