rice.pastry.socket
Class TimerWeakHashSet
java.lang.Object
rice.pastry.socket.TimerWeakHashSet
- All Implemented Interfaces:
- WeakHashSet
public class TimerWeakHashSet
- extends java.lang.Object
- implements WeakHashSet
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TimerWeakHashSet
public TimerWeakHashSet(int timeout,
SocketPastryNode spn)
- Minimum time to hold the item.
- Parameters:
timeout
-
coalesce
public SocketNodeHandle coalesce(SocketNodeHandle snh)
- Description copied from interface:
WeakHashSet
- Throws exception if there is already one available.
- Specified by:
coalesce
in interface WeakHashSet
refresh
public void refresh(java.lang.Object key)
refresh
public void refresh(java.lang.Object key,
int delay)
get
public SocketNodeHandle get(EpochInetSocketAddress eisa)
- Specified by:
get
in interface WeakHashSet
getBest
public java.util.HashMap getBest()
- Returns:
- the best source route for each known EpochInetSocketAddress, keyed by the EISA
Copyright © 2001-2005 - Rice Pastry.