org.logicblaze.lingo.util.locks
Class ConditionManagerImpl

java.lang.Object
  extended by org.logicblaze.lingo.util.locks.ConditionManagerImpl
All Implemented Interfaces:
java.util.EventListener, ConditionListener, ConnectionManager

public class ConditionManagerImpl
extends java.lang.Object
implements ConditionListener, ConnectionManager

Represents a client side ConditionManager which is used to communicate with a possibly remote ConditionServer

Version:
$Revision$

Constructor Summary
ConditionManagerImpl()
           
 
Method Summary
protected  ConditionClient createCondition(java.lang.String id)
          Factory method to create a new condition
protected  edu.emory.mathcs.backport.java.util.concurrent.locks.Lock createLock(java.lang.String id)
          Factory method to change a lock
 edu.emory.mathcs.backport.java.util.concurrent.locks.Condition getCondition(java.lang.String id)
          Gets the condition for the given ID lazily creating one if required.
 void onSignal(java.lang.String id)
           
 void onSignalAll(java.lang.String id)
           
 boolean removeCondition(java.lang.String id)
          Removes the condition of the given ID
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConditionManagerImpl

public ConditionManagerImpl()
Method Detail

getCondition

public edu.emory.mathcs.backport.java.util.concurrent.locks.Condition getCondition(java.lang.String id)
Gets the condition for the given ID lazily creating one if required.

Specified by:
getCondition in interface ConnectionManager

removeCondition

public boolean removeCondition(java.lang.String id)
Removes the condition of the given ID

Specified by:
removeCondition in interface ConnectionManager

onSignal

public void onSignal(java.lang.String id)
Specified by:
onSignal in interface ConditionListener

onSignalAll

public void onSignalAll(java.lang.String id)
Specified by:
onSignalAll in interface ConditionListener

createCondition

protected ConditionClient createCondition(java.lang.String id)
Factory method to create a new condition


createLock

protected edu.emory.mathcs.backport.java.util.concurrent.locks.Lock createLock(java.lang.String id)
Factory method to change a lock



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