com.atlassian.confluence.test.rpc
Class EventLatchManager

java.lang.Object
  extended by com.atlassian.confluence.test.rpc.EventLatchManager

public class EventLatchManager
extends java.lang.Object

Used to manage references to latches that are used to support the ability for test clients to register an event listener on the server side and to block until that event is published.


Constructor Summary
EventLatchManager()
           
 
Method Summary
 void addLatch(java.lang.Class eventClass, java.util.concurrent.CountDownLatch latch)
           
 java.util.Collection<java.lang.Class> clearAllLatches()
          Clear all existing latches, return a collection of all classes for which latches existed.
 java.util.concurrent.CountDownLatch getLatch(java.lang.Class eventClass)
           
 boolean removeLatch(java.lang.Class eventClass)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EventLatchManager

public EventLatchManager()
Method Detail

getLatch

public java.util.concurrent.CountDownLatch getLatch(java.lang.Class eventClass)

addLatch

public void addLatch(java.lang.Class eventClass,
                     java.util.concurrent.CountDownLatch latch)

removeLatch

public boolean removeLatch(java.lang.Class eventClass)
Returns:
true if previous latch value was successfully removed

clearAllLatches

public java.util.Collection<java.lang.Class> clearAllLatches()
Clear all existing latches, return a collection of all classes for which latches existed.



Copyright © 2003-2010 Atlassian. All Rights Reserved.