
| Constructor and Description |
|---|
BlackHoleChannel() |
| Modifier and Type | Method and Description |
|---|---|
T |
read()
Read a message from a channel, waiting indefinitely for a message to become available.
|
void |
write(T msg)
Write a message to the channel, waiting indefinitely for the message to be stored or read.
|
public void write(T msg) throws InterruptedException
Channelwrite in interface Channel<T>msg - The message.InterruptedExceptionpublic T read() throws InterruptedException
Channelread in interface Channel<T>InterruptedExceptionCopyright © 2020 LSST. All rights reserved.