public class FilteredChannelFactory
This class is used for constructing Filtered Channels.
The objects returned by instances of this class will implement
the appropriate Filtered Channel interfaces even though the return
types are not declared as being Filtered Channels. This is so
that this class can implement the ChannelFactory
and
ChannelArrayFactory
interfaces. Instances of this class
can therefore be used in place of the standard channel factory classes.
A set of read and/or write filters can be specified so that all of the channels created by this factory will have the same buffering properties.
Constructor and description |
---|
FilteredChannelFactory
() All channels constructed with a Factory constructed with this constructor will default to having no pre-installed filters. |
FilteredChannelFactory
(Filter[] readFilters, Filter[] writeFilters) |
Type | Name and description |
---|---|
Any2AnyChannel |
createAny2Any() Creates a new Any2Any channel with the filtering options set for this factory. |
Any2AnyChannel[] |
createAny2Any(int n) Constructs and returns an array of Any2AnyChannel
objects. |
Any2AnyChannel |
createAny2Any(ChannelDataStore buffer) Creates a new Any2Any channel with the filtering options set for this factory and the specified data buffer. |
Any2AnyChannel[] |
createAny2Any(ChannelDataStore buffer, int n) Constructs and returns an array of Any2AnyChannel
objects with a given buffering behaviour. |
Any2OneChannel |
createAny2One() Creates a new Any2One channel with the filtering options set for this factory. |
Any2OneChannel[] |
createAny2One(int n) Constructs and returns an array of Any2OneChannel
objects. |
Any2OneChannel |
createAny2One(ChannelDataStore buffer) Creates a new Any2One channel with the filtering options set for this factory and the specified data buffer. |
Any2OneChannel[] |
createAny2One(ChannelDataStore buffer, int n) Constructs and returns an array of Any2OneChannel
objects with a given buffering behaviour. |
One2AnyChannel |
createOne2Any() Creates a new One2Any channel with the filtering options set for this factory. |
One2AnyChannel[] |
createOne2Any(int n) Constructs and returns an array of One2AnyChannel
objects. |
One2AnyChannel |
createOne2Any(ChannelDataStore buffer) Creates a new One2Any channel with the filtering options set for this factory and the specified data buffer. |
One2AnyChannel[] |
createOne2Any(ChannelDataStore buffer, int n) Constructs and returns an array of One2AnyChannel
objects with a given buffering behaviour. |
One2OneChannel |
createOne2One() Creates a new One2One channel with the filtering options set for this factory. |
One2OneChannel[] |
createOne2One(int n) Constructs and returns an array of One2OneChannel
objects. |
One2OneChannel |
createOne2One(ChannelDataStore buffer) Creates a new One2One channel with the filtering options set for this factory and the specified data buffer. |
One2OneChannel[] |
createOne2One(ChannelDataStore buffer, int n) Constructs and returns an array of One2OneChannel
objects with a given buffering behaviour. |
All channels constructed with a Factory constructed with this constructor will default to having no pre-installed filters.
All channels constructed with this Factory instance will have the
specified Filter
objects inserted into them. The same
instances of the filters will be inserted into each channel.
Either of the parameters may be null
if read/write filters are not required.
readFilters
- optional read filters to install in new channels.writeFilters
- optional write filters to install in new channels.Creates a new Any2Any channel with the filtering options set for this factory.
Constructs and returns an array of Any2AnyChannel
objects.
n the
- size of the array of channels.Creates a new Any2Any channel with the filtering options set for this factory and the specified data buffer.
buffer
- the buffer implementation to use. Constructs and returns an array of Any2AnyChannel
objects with a given buffering behaviour.
n the
- size of the array of channels.buffer
- the buffer implementation to use.Creates a new Any2One channel with the filtering options set for this factory.
Constructs and returns an array of Any2OneChannel
objects.
n the
- size of the array of channels.Creates a new Any2One channel with the filtering options set for this factory and the specified data buffer.
buffer
- the buffer implementation to use. Constructs and returns an array of Any2OneChannel
objects with a given buffering behaviour.
n the
- size of the array of channels.buffer
- the buffer implementation to use.Creates a new One2Any channel with the filtering options set for this factory.
Constructs and returns an array of One2AnyChannel
objects.
n the
- size of the array of channels.Creates a new One2Any channel with the filtering options set for this factory and the specified data buffer.
buffer
- the buffer implementation to use. Constructs and returns an array of One2AnyChannel
objects with a given buffering behaviour.
n the
- size of the array of channels.buffer
- the buffer implementation to use.Creates a new One2One channel with the filtering options set for this factory.
Constructs and returns an array of One2OneChannel
objects.
n the
- size of the array of channels.Creates a new One2One channel with the filtering options set for this factory and the specified data buffer.
buffer
- the buffer implementation to use. Constructs and returns an array of One2OneChannel
objects with a given buffering behaviour.
n the
- size of the array of channels.buffer
- the buffer implementation to use.JCSP for Java 1.8 generated 14-10-2016 by Jon Kerridge, Edinburgh Napier University - j dot kerridge at napier dot ac dot uk