Package com.applitools.utils
Class BlockingInstanceContainer<T>
java.lang.Object
com.applitools.utils.BlockingInstanceContainer<T>
A generic container for objects to be shared between threads.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
BlockingInstanceContainer
public BlockingInstanceContainer()
-
-
Method Details
-
put
- Parameters:
underlying- The object to set.
-
take
- Returns:
- The underlying, or null if the thread was interrupted.
-
close
public void close()Marks the container as closed. All subsequent calls to(Object)will throw anIllegalStateException.
-