org.exolab.jms.messagemgr
Class Flag

java.lang.Object
  |
  +--org.exolab.jms.messagemgr.Flag
All Implemented Interfaces:
Condition

public class Flag
extends java.lang.Object
implements Condition

Implementation of the Condition interface that behaves as a synchronized, mutable boolean.

Version:
$Revision: 1.1 $ $Date: 2005/08/30 06:23:11 $
Author:
Tim Anderson

Constructor Summary
Flag(boolean set)
          Construct a new Flag.
 
Method Summary
 boolean get()
          Returns the state of the flag.
 void set(boolean value)
          Sets the state of the flag.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Flag

public Flag(boolean set)
Construct a new Flag.
Parameters:
set - determines if the flag is set
Method Detail

get

public boolean get()
Returns the state of the flag.
Specified by:
get in interface Condition
Returns:
true if the flag is set, otherwise false

set

public void set(boolean value)
Sets the state of the flag.
Parameters:
value - the state of the flag


Copyright © 1999-2007 The OpenJMS Group. All Rights Reserved.