Class StandardChannelIntFactory
- All Implemented Interfaces:
BufferedChannelIntArrayFactory, BufferedChannelIntFactory, ChannelIntArrayFactory, ChannelIntFactory
This class acts as a Factory for creating channels. It can create non-buffered and buffered channels and also arrays of non-buffered and buffered channels.
The Channel objects created by this Factory are formed of
separate objects for the read and write ends. Therefore the
ChannelInput object cannot be cast into the
ChannelOutput object and vice-versa.
The current implementation uses an instance of the
RiskyChannelIntFactory to construct the underlying
raw channels.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionConstructs and returns anAny2AnyChannelIntobject.createAny2Any(int n) Constructs and returns an array ofAny2AnyChannelIntobjects.createAny2Any(ChannelDataStoreInt buffer) Constructs and returns aAny2AnyChannelIntobject which uses the specifiedChannelDataStoreIntobject as a buffer.createAny2Any(ChannelDataStoreInt buffer, int n) Constructs and returns an array ofAny2AnyChannelIntobjects which use the specifiedChannelDataStoreIntobject as a buffer.Constructs and returns anAny2OneChannelIntobject.createAny2One(int n) Constructs and returns an array ofAny2OneChannelIntobjects.createAny2One(ChannelDataStoreInt buffer) Constructs and returns aAny2OneChannelIntobject which uses the specifiedChannelDataStoreIntobject as a buffer.createAny2One(ChannelDataStoreInt buffer, int n) Constructs and returns an array ofAny2OneChannelIntobjects which use the specifiedChannelDataStoreIntobject as a buffer.Constructs and returns aOne2AnyChannelIntobject.createOne2Any(int n) Constructs and returns an array ofOne2AnyChannelIntobjects.createOne2Any(ChannelDataStoreInt buffer) Constructs and returns aOne2AnyChannelIntobject which uses the specifiedChannelDataStoreIntobject as a buffer.createOne2Any(ChannelDataStoreInt buffer, int n) Constructs and returns an array ofOne2AnyChannelIntobjects which use the specifiedChannelDataStoreIntobject as a buffer.Constructs and returns aOne2OneChannelIntobject.createOne2One(int n) Constructs and returns an array ofOne2OneChannelIntobjects.createOne2One(ChannelDataStoreInt buffer) Constructs and returns aOne2OneChannelIntobject which uses the specifiedChannelDataStoreIntobject as a buffer.createOne2One(ChannelDataStoreInt buffer, int n) Constructs and returns an array ofOne2OneChannelIntobjects which use the specifiedChannelDataStoreIntobject as a buffer.
-
Constructor Details
-
StandardChannelIntFactory
public StandardChannelIntFactory()Constructs a new factory.
-
-
Method Details
-
createOne2One
Constructs and returns aOne2OneChannelIntobject.- Specified by:
createOne2Onein interfaceChannelIntFactory- Returns:
- the channel object.
- See Also:
-
createAny2One
Constructs and returns anAny2OneChannelIntobject.- Specified by:
createAny2Onein interfaceChannelIntFactory- Returns:
- the channel object.
- See Also:
-
createOne2Any
Constructs and returns aOne2AnyChannelIntobject.- Specified by:
createOne2Anyin interfaceChannelIntFactory- Returns:
- the channel object.
- See Also:
-
createAny2Any
Constructs and returns anAny2AnyChannelIntobject.- Specified by:
createAny2Anyin interfaceChannelIntFactory- Returns:
- the channel object.
- See Also:
-
createOne2One
Constructs and returns an array ofOne2OneChannelIntobjects.- Specified by:
createOne2Onein interfaceChannelIntArrayFactory- Parameters:
n- the size of the array of channels.- Returns:
- the array of channels.
- See Also:
-
createAny2One
Constructs and returns an array ofAny2OneChannelIntobjects.- Specified by:
createAny2Onein interfaceChannelIntArrayFactory- Parameters:
n- the size of the array of channels.- Returns:
- the array of channels.
- See Also:
-
createOne2Any
Constructs and returns an array ofOne2AnyChannelIntobjects.- Specified by:
createOne2Anyin interfaceChannelIntArrayFactory- Parameters:
n- the size of the array of channels.- Returns:
- the array of channels.
- See Also:
-
createAny2Any
Constructs and returns an array ofAny2AnyChannelIntobjects.- Specified by:
createAny2Anyin interfaceChannelIntArrayFactory- Parameters:
n- the size of the array of channels.- Returns:
- the array of channels.
- See Also:
-
createOne2One
Constructs and returns a
One2OneChannelIntobject which uses the specifiedChannelDataStoreIntobject as a buffer.The buffer supplied to this method is cloned before it is inserted into the channel.
- Specified by:
createOne2Onein interfaceBufferedChannelIntFactory- Parameters:
buffer- theChannelDataStoreIntto use.- Returns:
- the buffered channel.
- See Also:
-
createAny2One
Constructs and returns a
Any2OneChannelIntobject which uses the specifiedChannelDataStoreIntobject as a buffer.The buffer supplied to this method is cloned before it is inserted into the channel.
- Specified by:
createAny2Onein interfaceBufferedChannelIntFactory- Parameters:
buffer- theChannelDataStoreIntto use.- Returns:
- the buffered channel.
- See Also:
-
createOne2Any
Constructs and returns a
One2AnyChannelIntobject which uses the specifiedChannelDataStoreIntobject as a buffer.The buffer supplied to this method is cloned before it is inserted into the channel.
- Specified by:
createOne2Anyin interfaceBufferedChannelIntFactory- Parameters:
buffer- theChannelDataStoreIntto use.- Returns:
- the buffered channel.
- See Also:
-
createAny2Any
Constructs and returns a
Any2AnyChannelIntobject which uses the specifiedChannelDataStoreIntobject as a buffer.The buffer supplied to this method is cloned before it is inserted into the channel.
- Specified by:
createAny2Anyin interfaceBufferedChannelIntFactory- Parameters:
buffer- theChannelDataStoreIntto use.- Returns:
- the buffered channel.
- See Also:
-
createOne2One
Constructs and returns an array of
One2OneChannelIntobjects which use the specifiedChannelDataStoreIntobject as a buffer.The buffer supplied to this method is cloned before it is inserted into the channel. This is why an array of buffers is not required.
- Specified by:
createOne2Onein interfaceBufferedChannelIntArrayFactory- Parameters:
buffer- theChannelDataStoreIntto use.n- the size of the array of channels.- Returns:
- the array of buffered channels.
- See Also:
-
createAny2One
Constructs and returns an array of
Any2OneChannelIntobjects which use the specifiedChannelDataStoreIntobject as a buffer.The buffer supplied to this method is cloned before it is inserted into the channel. This is why an array of buffers is not required.
- Specified by:
createAny2Onein interfaceBufferedChannelIntArrayFactory- Parameters:
buffer- theChannelDataStoreIntto use.n- the size of the array of channels.- Returns:
- the array of buffered channels.
- See Also:
-
createOne2Any
Constructs and returns an array of
One2AnyChannelIntobjects which use the specifiedChannelDataStoreIntobject as a buffer.The buffer supplied to this method is cloned before it is inserted into the channel. This is why an array of buffers is not required.
- Specified by:
createOne2Anyin interfaceBufferedChannelIntArrayFactory- Parameters:
buffer- theChannelDataStoreIntto use.n- the size of the array of channels.- Returns:
- the array of buffered channels.
- See Also:
-
createAny2Any
Constructs and returns an array of
Any2AnyChannelIntobjects which use the specifiedChannelDataStoreIntobject as a buffer.The buffer supplied to this method is cloned before it is inserted into the channel. This is why an array of buffers is not required.
- Specified by:
createAny2Anyin interfaceBufferedChannelIntArrayFactory- Parameters:
buffer- theChannelDataStoreIntto use.n- the size of the array of channels.- Returns:
- the array of buffered channels.
- See Also:
-