class SharedChannelOutputImpl<T> extends java.lang.Object implements SharedChannelOutput<T>
| Modifier and Type | Field and Description |
|---|---|
private ChannelInternals<T> |
channel |
private int |
immunity |
| Constructor and Description |
|---|
SharedChannelOutputImpl(ChannelInternals<T> _channel,
int _immunity) |
| Modifier and Type | Method and Description |
|---|---|
void |
poison(int strength)
This injects poison into the channel.
|
void |
write(T object)
Write an Object to the channel.
|
private ChannelInternals<T> channel
private int immunity
SharedChannelOutputImpl(ChannelInternals<T> _channel, int _immunity)
public void write(T object)
ChannelOutputwrite in interface ChannelOutput<T>object - the object to write to the channelpublic void poison(int strength)
Poisonablepoison in interface Poisonablestrength - the strength of the poison (must be >= 0).