class Any2AnyImpl<T> extends java.lang.Object implements Any2AnyChannel<T>, ChannelInternals<T>
| Modifier and Type | Field and Description |
|---|---|
private ChannelInternals<T> |
channel |
private Mutex |
readMutex
The mutex on which readers must synchronize
|
private java.lang.Object |
writeMonitor |
| Constructor and Description |
|---|
Any2AnyImpl(ChannelInternals<T> _channel) |
| Modifier and Type | Method and Description |
|---|---|
void |
endRead() |
SharedChannelInput<T> |
in()
Returns the input end of the channel.
|
SharedChannelOutput<T> |
out()
Returns the output end of the channel.
|
T |
read() |
boolean |
readerDisable() |
boolean |
readerEnable(Alternative alt) |
boolean |
readerPending() |
void |
readerPoison(int strength) |
T |
startRead() |
void |
write(T obj) |
void |
writerPoison(int strength) |
private ChannelInternals<T> channel
private final Mutex readMutex
private final java.lang.Object writeMonitor
Any2AnyImpl(ChannelInternals<T> _channel)
public SharedChannelInput<T> in()
Any2AnyChannelin in interface Any2AnyChannel<T>public SharedChannelOutput<T> out()
Any2AnyChannelout in interface Any2AnyChannel<T>public void endRead()
endRead in interface ChannelInternals<T>public T read()
read in interface ChannelInternals<T>public boolean readerDisable()
readerDisable in interface ChannelInternals<T>public boolean readerEnable(Alternative alt)
readerEnable in interface ChannelInternals<T>public boolean readerPending()
readerPending in interface ChannelInternals<T>public void readerPoison(int strength)
readerPoison in interface ChannelInternals<T>public T startRead()
startRead in interface ChannelInternals<T>public void write(T obj)
write in interface ChannelInternals<T>public void writerPoison(int strength)
writerPoison in interface ChannelInternals<T>