public interface ChannelSource<T>
Modifier and Type | Method and Description |
---|---|
void |
send(T data)
Inputs data into the channel and returns immediately.
|
default void |
uncheckedSend(T data)
Same as
send but masks any exception as a runtime
(unchecked) exception and throws it as such without any wrapping. |
void send(T data) throws java.lang.Exception
data
- the message to send.java.lang.NullPointerException
- if the input is null
.java.lang.Exception
- if the data could not be input into the channel.