java.lang.Object
i2p.susi.webmail.WebMail.LoadWaiter
- All Implemented Interfaces:
NewMailListener
- Enclosing class:
WebMail
Callback from
MailCache.loadFromDisk(NewMailListener).Field Summary
FieldsModifier and TypeFieldDescriptionprivate final MailCacheThe folder being listed.private final WebMail.SessionObjectThe session rendering the page.Constructor Summary
ConstructorsConstructorDescriptionLoadWaiter(WebMail.SessionObject so, MailCache mc) Waits for the mailbox to load for this session.Method Summary
All MethodsModifier and TypeMethodDescriptionvoidfoundNewMail(boolean yes) Merge any newly arrived UIDLs into the folder and wake the waiter.
Field Details
_so
The session rendering the page._mc
The folder being listed.
Constructor Details
LoadWaiter
Waits for the mailbox to load for this session.- Parameters:
so- the session waiting on the disk load, notified when it finishesmc- the cache supplying the UIDLs that just arrived on disk
Method Details
foundNewMail
public void foundNewMail(boolean yes) Merge any newly arrived UIDLs into the folder and wake the waiter.- Specified by:
foundNewMailin interfaceNewMailListener- Parameters:
yes- true if new mail was found