org.iids.aos.util
Class HashSetPool<E>

java.lang.Object
  extended by org.iids.aos.util.HashSetPool<E>

public class HashSetPool<E>
extends java.lang.Object

Class HashSetPool is a thread-safe pool of HashSets. There is no maximum for the number of HashSets in the pool. New HashSets will be created on demand. However, when HashSets are not used for a certain period of time, they will be removed, to keep the amount of resources to a minimum.

Author:
Michel Oey

Constructor Summary
HashSetPool()
           
 
Method Summary
 java.util.HashSet<E> getInstance()
           
 void releaseInstance(java.util.HashSet<E> s)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HashSetPool

public HashSetPool()
Method Detail

getInstance

public java.util.HashSet<E> getInstance()

releaseInstance

public void releaseInstance(java.util.HashSet<E> s)


Copyright © 2003, 2004 IIDS Group. All Rights Reserved.