| 
|||||||||||
| 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
        |
        +--net.walend.lyophil.queuedwrite.test.SleepyQueuedWriteFreezer
This subclass of QueuedWriteFreezer is specially built for testing. It sleeps a bit before calling any of the read commands, to let the writing thread catch up.
| Nested Class Summary | 
| Nested classes inherited from class net.walend.lyophil.queuedwrite.QueuedWriteFreezer | 
 | 
| Field Summary | 
| Fields inherited from class net.walend.lyophil.queuedwrite.QueuedWriteFreezer | 
MASTERFREEZER | 
| Fields inherited from interface net.walend.lyophil.Freezer | 
ROLE | 
| Constructor Summary | |
SleepyQueuedWriteFreezer()
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.  | 
 SetOfFreezables | 
getAll()
Returns a lyophilizer.collection.Set of Freezables.  | 
 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.  | 
private  void | 
sleep()
 | 
 Freezable | 
thaw(java.io.Serializable identifier)
For the identifier, return a Freezable object containing the data.  | 
| Methods inherited from class net.walend.lyophil.queuedwrite.QueuedWriteFreezer | 
freeze, getMasterFreezer, throwOut, throwOutAll | 
| Methods inherited from class java.lang.Object | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
public SleepyQueuedWriteFreezer()
| Method Detail | 
private void sleep()
public Freezable thaw(java.io.Serializable identifier)
               throws NotInFreezerException
thaw in interface Freezerthaw in class QueuedWriteFreezerCannotThawExceptionNotInFreezerExceptionpublic boolean isAvailable(java.io.Serializable identifier)
isAvailable in interface FreezerisAvailable in class QueuedWriteFreezerPersistenceFailureExceptionpublic SetOfFreezables getAll()
getAll in interface FreezergetAll in class QueuedWriteFreezerPersistenceFailureExceptionpublic int count()
count in interface Freezercount in class QueuedWriteFreezerpublic boolean isEmpty()
isEmpty in interface FreezerisEmpty in class QueuedWriteFreezer
  | 
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||