PooliT v2.0

org.ascentphase.poolit.poolers
Interface NotifyPoolListener

All Known Implementing Classes:
PooliTConnection

public interface NotifyPoolListener

Classes that wish to be notified when they are fetched from the pool and subsequently released back to the pool must implement this interface. This interface works in conjunction with the NotifyPooler only.

Author:
huyd

Method Summary
 void fetched(Pooler src)
          This method is called when the object is fetched from a NotifyPooler.
 void released(Pooler dest)
          This method is called when the object is released back to a NotifyPooler.
 

Method Detail

fetched

public void fetched(Pooler src)
This method is called when the object is fetched from a NotifyPooler. The object should perform any tasks here after being removed from the pool, but before any other objects can use it.

Parameters:
src - the Pooler from where the object is removed.

released

public void released(Pooler dest)
This method is called when the object is released back to a NotifyPooler. The objects should perform any tasks here after being returned to the pool.

Parameters:
dest - the Pooler where the object is returned.

PooliT v2.0

Copyright © 2005 Ascent Phase Corp.