public class BlockingInstanceContainer<T> extends Object
| Constructor and Description |
|---|
BlockingInstanceContainer() |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Marks the container as closed.
|
void |
put(T underlying) |
T |
take() |
public void put(T underlying)
underlying - The object to set.public T take()
public void close()
(Object) will throw an IllegalStateException.Copyright © 2022. All rights reserved.