de.bea.domingo.proxy
Class RecycleStrategy

java.lang.Object
  extended by de.bea.domingo.monitor.AbstractMonitorEnabled
      extended by de.bea.domingo.proxy.RecycleStrategy
All Implemented Interfaces:
MonitorEnabled, NotesRecycler

public final class RecycleStrategy
extends AbstractMonitorEnabled
implements NotesRecycler

Implementation of interface 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.

Author:
Kurt Riede

Constructor Summary
RecycleStrategy(DNotesMonitor monitor)
          Constructor.
 
Method Summary
 void recycle(java.lang.Object object)
          Immediately recycles a Notes object.
 void recycleLater(java.lang.Object object)
          Enqueues a Notes object into a recycle queue for later recycling.
 void recycleQueue()
          Immediately recycles all enqueued objects.
 
Methods inherited from class de.bea.domingo.monitor.AbstractMonitorEnabled
getMonitor, setMonitor
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RecycleStrategy

public RecycleStrategy(DNotesMonitor monitor)
Constructor.

Parameters:
monitor - the monitor
Method Detail

recycleLater

public void recycleLater(java.lang.Object object)
Enqueues a Notes object into a recycle queue for later recycling.

Specified by:
recycleLater in interface NotesRecycler
Parameters:
object - the Notes object to be recycled later
See Also:
NotesRecycler.recycleLater(java.lang.Object)

recycleQueue

public void recycleQueue()
Description copied from interface: NotesRecycler
Immediately recycles all enqueued objects.

Specified by:
recycleQueue in interface NotesRecycler
See Also:
NotesRecycler.recycleQueue()

recycle

public void recycle(java.lang.Object object)
Immediately recycles a Notes object.

Specified by:
recycle in interface NotesRecycler
Parameters:
object - the Notes object to be recycled
See Also:
NotesRecycler.recycle(java.lang.Object)


Domingo Java-API