Class EventLatchManager
java.lang.Object
com.atlassian.confluence.test.rpc.EventLatchManager
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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddLatch(Class eventClass, LatchedEventListener latch) Clear all existing latches, return a collection of all classes for which latches existed.@Nullable LatchedEventListenergetListener(Class eventClass) @Nullable LatchedEventListenerremoveLatch(Class eventClass)
-
Constructor Details
-
EventLatchManager
public EventLatchManager()
-
-
Method Details
-
getListener
-
addLatch
-
removeLatch
- Returns:
- true if previous latch value was successfully removed
-
clearAllLatches
Clear all existing latches, return a collection of all classes for which latches existed.
-