FileDocCategorySizeDatePackage
Blocking.javaAPI DocExample9117Mon Apr 06 18:10:22 BST 1998None

Blockable

public class Blockable extends Thread

Fields Summary
private Peeker
peeker
protected TextField
state
protected int
i
Constructors Summary
public Blockable(Container c)

     
    c.add(state);
    peeker = new Peeker(this, c);
  
Methods Summary
public synchronized intread()

 return i; 
public voidstopPeeker()

 
    // peeker.stop(); Deprecated in Java 1.2
    peeker.terminate(); // The preferred approach
  
protected synchronized voidupdate()

    state.setText(getClass().getName()
      + " state: i = " + i);