Overview | Package | Class | Tree | Index | Help

Oracle® Coherence Java API Reference
v3.5.3
E15583-01
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## com.tangosol.net
Class DatagramTest.StartFlag

    java.lang.Object
      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

Overview | Package | Class | Tree | Index | Help

Oracle® Coherence Java API Reference
v3.5.3
E15583-01
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

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