Package org.smallmind.nutsnbolts.util
Class SelfDestructiveMap<K extends Comparable<K>,S extends SelfDestructive>
- java.lang.Object
-
- org.smallmind.nutsnbolts.util.SelfDestructiveMap<K,S>
-
public class SelfDestructiveMap<K extends Comparable<K>,S extends SelfDestructive> extends Object
-
-
Constructor Summary
Constructors Constructor Description SelfDestructiveMap(Stint defaultTimeoutStint)SelfDestructiveMap(Stint defaultTimeoutStint, Stint pulseTimeStint)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidfinalize()Sget(K key)SputIfAbsent(K key, S value)SputIfAbsent(K key, S value, Stint timeoutStint)voidshutdown()
-
-
-
Method Detail
-
shutdown
public void shutdown() throws InterruptedException- Throws:
InterruptedException
-
finalize
protected void finalize() throws InterruptedException- Overrides:
finalizein classObject- Throws:
InterruptedException
-
-