Skip navigation links

Oracle® Coherence Java API Reference
v3.5.1

E15583-01


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 java.lang.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 java.lang.InterruptedException
Wait for the go signal.
Throws:
java.lang.InterruptedException - if interrupted while waiting

Skip navigation links

Oracle® Coherence Java API Reference
v3.5.1

E15583-01


Copyright © 2000, 2009, Oracle. All rights reserved.