public final class RecycleStrategy extends AbstractMonitorEnabled implements NotesRecycler
NotesRecycler that explicitly
recycles almost all Notes objects.
This strategy should be used with Lotus Notes R5 while missing explicit recycle results in memory leaks.
| Constructor and Description |
|---|
RecycleStrategy(DNotesMonitor monitor)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
recycle(Object object)
Immediately recycles a Notes object.
|
void |
recycleLater(Object object)
Enqueues a Notes object into a recycle queue for later recycling.
|
void |
recycleQueue()
Immediately recycles all enqueued objects.
|
getMonitor, setMonitorpublic RecycleStrategy(DNotesMonitor monitor)
monitor - the monitorpublic void recycleLater(Object object)
recycleLater in interface NotesRecyclerobject - the Notes object to be recycled laterNotesRecycler.recycleLater(java.lang.Object)public void recycleQueue()
NotesRecyclerrecycleQueue in interface NotesRecyclerNotesRecycler.recycleQueue()public void recycle(Object object)
recycle in interface NotesRecyclerobject - the Notes object to be recycledNotesRecycler.recycle(java.lang.Object)Copyright © 2005–2020. All rights reserved.