CoherenceTM v3.3
Copyright© 2000-2007 by Oracle Corporation

com.tangosol.net
Class DatagramTest.StartFlag

java.lang.Object
  extended by com.tangosol.net.DatagramTest.StartFlag
Enclosing class:
DatagramTest

protected static class DatagramTest.StartFlag
extends Object

The start flag is used to allow a listener to control a inner process publisher. This is used when the pulbisher is run in "polite" mode to cause it to only publish when the listener is receiving data.


Field Summary
protected  boolean m_fGo
           
 
Constructor Summary
protected DatagramTest.StartFlag()
           
 
Method Summary
 void go()
          Instruct any publisher waiting for the go flag that it may proceed.
 boolean isStopped()
          Return true if the publisher should stop.
 void stop()
          Instruct any publisher using this flag that it should stop.
 void waitForGo()
          Wait for the go signal.
 

Field Detail

m_fGo

protected volatile boolean m_fGo
Constructor Detail

DatagramTest.StartFlag

protected DatagramTest.StartFlag()
Method Detail

go

public void go()
Instruct any publisher waiting for the go flag that it may proceed.


stop

public void stop()
Instruct any publisher using this flag that it should stop.


isStopped

public boolean isStopped()
Return true if the publisher should stop.

Returns:
true if the publisher should stop

waitForGo

public void waitForGo()
               throws InterruptedException
Wait for the go signal.

Throws:
InterruptedException - if interrupted while waiting

CoherenceTM v3.3
Copyright© 2000-2007 by Oracle Corporation