class Net2OneChannel extends NetAltingChannelInput
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
label |
private NetChannelInputProcess |
netChannelInputProcess |
Modifier | Constructor and Description |
---|---|
private |
Net2OneChannel(AltingChannelInput actualChan,
RejectableChannel ch)
Creates a zero-buffered channel reader.
|
private |
Net2OneChannel(java.lang.String label,
AltingChannelInput actualChan,
RejectableChannel ch)
Creates a channel which receives data on a labelled VCN.
|
Modifier and Type | Method and Description |
---|---|
void |
checkPoison()
Currently, network channels are unpoisonable so this method will never throw a PoisonException
|
(package private) static Net2OneChannel |
create() |
(package private) static Net2OneChannel |
create(ChannelDataStore buffer) |
(package private) static Net2OneChannel |
create(java.lang.String label) |
(package private) static Net2OneChannel |
create(java.lang.String label,
ChannelDataStore buffer) |
void |
destroyReader()
Destroys this end of the channel.
|
protected AltingChannelInput |
getChannel()
This method should not be called.
|
(package private) long |
getChannelIndex() |
NetChannelLocation |
getChannelLocation()
Returns a new
NetChannelLocation object which holds the
information necessary for a networked ChannelOutput to
establish a connection to this channel reader. |
java.lang.Class |
getFactoryClass()
Returns a Class file of the factory used to construct the
channel end.
|
void |
poison(PoisonException poison)
Currently, network channels are unpoisonable so this method has no effect.
|
endRead, pending, poison, read, setChannel, startRead
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
endRead, read, startRead
poison
private final java.lang.String label
private NetChannelInputProcess netChannelInputProcess
private Net2OneChannel(java.lang.String label, AltingChannelInput actualChan, RejectableChannel ch) throws java.lang.IllegalArgumentException
label
- The label to apply to this channel's VCN.java.lang.IllegalArgumentException
- if the label supplied
is a null
reference.private Net2OneChannel(AltingChannelInput actualChan, RejectableChannel ch)
getChannelLocation()
method can
be called to obtain the location information of the constructed
channel.static Net2OneChannel create(java.lang.String label)
static Net2OneChannel create()
static Net2OneChannel create(ChannelDataStore buffer)
static Net2OneChannel create(java.lang.String label, ChannelDataStore buffer)
public NetChannelLocation getChannelLocation()
NetChannelLocation
object which holds the
information necessary for a networked ChannelOutput
to
establish a connection to this channel reader.public void destroyReader()
protected AltingChannelInput getChannel()
getChannel
in class AltingChannelInputWrapper
long getChannelIndex()
public java.lang.Class getFactoryClass()
NetChannelInput
Returns a Class file of the factory used to construct the channel end.
Class
of the factory class.public void poison(PoisonException poison)
public void checkPoison() throws PoisonException
PoisonException