javax.realtime.util
Class EventVariable

java.lang.Object
  extended byjavax.realtime.util.EventVariable

public class EventVariable
extends Object

This class represent an Event Variable that can be used to synchronize concurrent thread on the happening of a given event. This implementation of event variable actually laches the signal, and make those available to later invocation of await. This means that, an invocation of the method await would not block if an invocation of the method signal had preceeded it.

Author:
Angelo Corsaro

Constructor Summary
EventVariable()
           
EventVariable(boolean signaled)
           
 
Method Summary
 void await()
           
 void await(long timeoutMillis)
           
 void await(long timeoutMillis, int timeoutNanos)
           
 void broadCastSignal()
           
 void signal()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EventVariable

public EventVariable()

EventVariable

public EventVariable(boolean signaled)
Method Detail

await

public void await()
           throws InterruptedException
Throws:
InterruptedException

await

public void await(long timeoutMillis)
           throws InterruptedException
Throws:
InterruptedException

await

public void await(long timeoutMillis,
                  int timeoutNanos)
           throws InterruptedException
Throws:
InterruptedException

signal

public void signal()

broadCastSignal

public void broadCastSignal()


jRate is developed and maintained by the jRate project development team.
Copyright (c) 2001-2005 Angelo Corsaro and Morgan Deters.