Class como.util.CubbyHole
All Packages Class Hierarchy This Package Previous Next Index
Class como.util.CubbyHole
java.lang.Object
|
+----como.util.CubbyHole
- public class CubbyHole
- extends Object
Use this to communicate between processes.
Put in an Object and read it from the other side!
As long as nobody put()'s an Object into it, the
get() will block!
-
CubbyHole()
-
-
get()
- gets the Object from the CubbyHole.
-
put(Object)
- put an Object in the CubbyHole.
CubbyHole
public CubbyHole()
get
public synchronized Object get()
- gets the Object from the CubbyHole.
- Returns:
- the Object.
put
public synchronized void put(Object o)
- put an Object in the CubbyHole.
- Parameters:
- o - the Object.
All Packages Class Hierarchy This Package Previous Next Index