com.wiley.posa3.evictor
Interface EvictionInterface

All Known Implementing Classes:
Connection, NetworkElement, NetworkElementComponent, SecurityToken

public interface EvictionInterface

EvictionInterface is an interface that will be implemented by all objects that can be evicted.

Version:
1.0
Author:
Michael Kircher, Prashant Jain

Method Summary
 void beforeEviction()
          The beforeEviction() method serves as a hook method that can be called by the Evictor before it evicts an object.
 java.lang.Object info()
          The info() method is used by the Evictor to extract strategy-specific information from the object, to determine whether or not to evict it.
 boolean isEvictable()
          The method isEvictable() is used to determine whether this object is evictable.
 

Method Detail

isEvictable

public boolean isEvictable()
The method isEvictable() is used to determine whether this object is evictable.

Returns:
boolan true if the object is evictable, false otherwise

info

public java.lang.Object info()
The info() method is used by the Evictor to extract strategy-specific information from the object, to determine whether or not to evict it.

Returns:
Object strategy-specific information

beforeEviction

public void beforeEviction()
The beforeEviction() method serves as a hook method that can be called by the Evictor before it evicts an object. This gives the object a chance to release any resources it may have acquired.



Copyright 2004 John Wiley and Sons. All Rights Reserved.