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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addLatch
(Class eventClass, LatchedEventListener latch) Clear all existing latches, return a collection of all classes for which latches existed.@Nullable LatchedEventListener
getListener
(Class eventClass) @Nullable LatchedEventListener
removeLatch
(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.
-