jfreerails.network
Class SynchronizedFlag

java.lang.Object
  extended by jfreerails.network.SynchronizedFlag

 class SynchronizedFlag
extends java.lang.Object

Synchronized flag - used to tell threads whether they should keep going. Note, thought about using volatile keyword but wasn't sure if it is implemented on all JVMs

Author:
Luke

Field Summary
private  boolean isOpen
           
 
Constructor Summary
SynchronizedFlag(boolean b)
           
 
Method Summary
 void close()
           
 boolean isOpen()
           
 void open()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

isOpen

private boolean isOpen
Constructor Detail

SynchronizedFlag

SynchronizedFlag(boolean b)
Method Detail

isOpen

public boolean isOpen()

close

public void close()

open

public void open()