things.common.tools
Class DeadDropRendezvous<T>

java.lang.Object
  extended by things.common.tools.DeadDropRendezvous<T>

public class DeadDropRendezvous<T>
extends java.lang.Object

And object Rendezvous dead drop. This should be between two threads only! The giver can dead-drop it and move on. This could be a problem with multiple events, but I can revisit that later.

Version:
1.0

Version History

EPG - Initial - 28 APR 07
 
Author:
Erich P. Gatejen

Constructor Summary
DeadDropRendezvous()
           
 
Method Summary
 T enter()
          Wait for the Rendezvous.
 void meet(T thing)
          Meet the Rendezvous.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DeadDropRendezvous

public DeadDropRendezvous()
Method Detail

enter

public T enter()
Wait for the Rendezvous.

Returns:
the item.

meet

public void meet(T thing)
Meet the Rendezvous. Set or replace the item.

Parameters:
thing - the Thing


Things.