public class

EventLatchManager

extends Object
java.lang.Object
   ↳ com.atlassian.confluence.test.rpc.EventLatchManager

Class Overview

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.

Summary

Public Constructors
EventLatchManager()
Public Methods
void addLatch(Class eventClass, CountDownLatch latch)
Collection<Class> clearAllLatches()
Clear all existing latches, return a collection of all classes for which latches existed.
CountDownLatch getLatch(Class eventClass)
boolean removeLatch(Class eventClass)
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public EventLatchManager ()

Public Methods

public void addLatch (Class eventClass, CountDownLatch latch)

public Collection<Class> clearAllLatches ()

Clear all existing latches, return a collection of all classes for which latches existed.

public CountDownLatch getLatch (Class eventClass)

public boolean removeLatch (Class eventClass)

Returns
  • true if previous latch value was successfully removed