| 
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--net.walend.lyophil.queuedwrite.QueuedWriteFreezer
When this Freezer freeze()s, throwOut()s or throwOutAll()s, it puts Runnable commands into a EDU.oswego.cs.dl.util.concurrent.QueuedExecutor, to write on a separate thread. All other methods get passed to the Freezer defined in QueuedWriterFreezer.MasterFreezer.
| Nested Class Summary | |
private  class | 
QueuedWriteFreezer.Command
 | 
private  class | 
QueuedWriteFreezer.FreezeCommand
 | 
private  class | 
QueuedWriteFreezer.ThrowOutAllCommand
 | 
private  class | 
QueuedWriteFreezer.ThrowOutCommand
 | 
| Field Summary | |
private  EDU.oswego.cs.dl.util.concurrent.Executor | 
executor
 | 
static java.lang.String | 
MASTERFREEZER
 | 
| Fields inherited from interface net.walend.lyophil.Freezer | 
ROLE | 
| Constructor Summary | |
QueuedWriteFreezer()
An empty constructor so that this Freezer can be created by a GenericDirector.  | 
|
| Method Summary | |
 int | 
count()
Returns the number of elements in this collection.  | 
 void | 
freeze(Freezable victem)
Take the Thawed victem and put it in cold storage.  | 
 SetOfFreezables | 
getAll()
Returns a lyophilizer.collection.Set of Freezables.  | 
protected  Freezer | 
getMasterFreezer()
 | 
 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)
For the identifier, return a Freezable object containing the data.  | 
 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 | 
| Field Detail | 
public static final java.lang.String MASTERFREEZER
private EDU.oswego.cs.dl.util.concurrent.Executor executor
| Constructor Detail | 
public QueuedWriteFreezer()
| Method Detail | 
protected Freezer getMasterFreezer()
public void freeze(Freezable victem)
freeze in interface FreezerCannotFreezeException
public Freezable thaw(java.io.Serializable identifier)
               throws NotInFreezerException
thaw in interface FreezerCannotThawExceptionNotInFreezerException
public void throwOut(java.io.Serializable identifier)
              throws NotInFreezerException
throwOut in interface FreezerCannotThrowOutExceptionNotInFreezerExceptionpublic boolean isAvailable(java.io.Serializable identifier)
isAvailable in interface FreezerPersistenceFailureExceptionpublic void throwOutAll()
throwOutAll in interface Freezerpublic SetOfFreezables getAll()
getAll in interface FreezerPersistenceFailureExceptionpublic int count()
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 | ||||||||||