org.logicblaze.lingo.util.locks
Class ConditionController

java.lang.Object
  extended by org.logicblaze.lingo.util.locks.ConditionController

public class ConditionController
extends Object

A server side version of a Condition which is used by a ConditionServer to implement distributed conditions.

Version:
$Revision$

Constructor Summary
ConditionController(String id, edu.emory.mathcs.backport.java.util.concurrent.locks.Lock lock)
           
 
Method Summary
 void await(ConditionListener listener, long timeoutMillis)
           
 boolean isActive()
          Returns whether or not this condition is active so that it can be cleaned up in a pool.
protected  boolean pendingSignals(ConditionListener listener)
          Returns true if there were pending signals
 void purge()
          Purges any inactive listeners from the Map
 void signal()
           
 void signalAll()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConditionController

public ConditionController(String id,
                           edu.emory.mathcs.backport.java.util.concurrent.locks.Lock lock)
Method Detail

isActive

public boolean isActive()
Returns whether or not this condition is active so that it can be cleaned up in a pool.

Returns:
true if this condition is active otherwise false indicating it can be deleted.

await

public void await(ConditionListener listener,
                  long timeoutMillis)

signal

public void signal()

signalAll

public void signalAll()

purge

public void purge()
Purges any inactive listeners from the Map


pendingSignals

protected boolean pendingSignals(ConditionListener listener)
Returns true if there were pending signals



Copyright © 2012 LogicBlaze, Inc.. All Rights Reserved.