public class FilteredChannelFactory extends java.lang.Object implements ChannelFactory, ChannelArrayFactory, BufferedChannelFactory, BufferedChannelArrayFactory
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)
All channels constructed with this Factory instance will have the
specified
Filter objects inserted into them. |
| Modifier and Type | Method and Description |
|---|---|
Any2AnyChannel |
createAny2Any()
Creates a new Any2Any channel with the filtering options set for this factory.
|
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. |
Any2AnyChannel[] |
createAny2Any(int n)
Constructs and returns an array of
Any2AnyChannel
objects. |
Any2OneChannel |
createAny2One()
Creates a new Any2One channel with the filtering options set for this factory.
|
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. |
Any2OneChannel[] |
createAny2One(int n)
Constructs and returns an array of
Any2OneChannel
objects. |
One2AnyChannel |
createOne2Any()
Creates a new One2Any channel with the filtering options set for this factory.
|
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. |
One2AnyChannel[] |
createOne2Any(int n)
Constructs and returns an array of
One2AnyChannel
objects. |
One2OneChannel |
createOne2One()
Creates a new One2One channel with the filtering options set for this factory.
|
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. |
One2OneChannel[] |
createOne2One(int n)
Constructs and returns an array of
One2OneChannel
objects. |
public FilteredChannelFactory()
public FilteredChannelFactory(Filter[] readFilters, Filter[] writeFilters)
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.public One2OneChannel createOne2One()
createOne2One in interface ChannelFactorypublic Any2OneChannel createAny2One()
createAny2One in interface ChannelFactorypublic One2AnyChannel createOne2Any()
createOne2Any in interface ChannelFactorypublic Any2AnyChannel createAny2Any()
createAny2Any in interface ChannelFactorypublic One2OneChannel[] createOne2One(int n)
One2OneChannel
objects.createOne2One in interface ChannelArrayFactoryn - the size of the array of channels.ChannelArrayFactory.createOne2One(int)public Any2OneChannel[] createAny2One(int n)
Any2OneChannel
objects.createAny2One in interface ChannelArrayFactoryn - the size of the array of channels.ChannelArrayFactory.createAny2One(int)public One2AnyChannel[] createOne2Any(int n)
One2AnyChannel
objects.createOne2Any in interface ChannelArrayFactoryn - the size of the array of channels.ChannelArrayFactory.createOne2Any(int)public Any2AnyChannel[] createAny2Any(int n)
Any2AnyChannel
objects.createAny2Any in interface ChannelArrayFactoryn - the size of the array of channels.ChannelArrayFactory.createAny2Any(int)public One2OneChannel createOne2One(ChannelDataStore buffer)
createOne2One in interface BufferedChannelFactorybuffer - the buffer implementation to use.public Any2OneChannel createAny2One(ChannelDataStore buffer)
createAny2One in interface BufferedChannelFactorybuffer - the buffer implementation to use.public One2AnyChannel createOne2Any(ChannelDataStore buffer)
createOne2Any in interface BufferedChannelFactorybuffer - the buffer implementation to use.public Any2AnyChannel createAny2Any(ChannelDataStore buffer)
createAny2Any in interface BufferedChannelFactorybuffer - the buffer implementation to use.public One2OneChannel[] createOne2One(ChannelDataStore buffer, int n)
One2OneChannel
objects with a given buffering behaviour.createOne2One in interface BufferedChannelArrayFactoryn - the size of the array of channels.buffer - the buffer implementation to use.ChannelArrayFactory.createOne2One(int)public Any2OneChannel[] createAny2One(ChannelDataStore buffer, int n)
Any2OneChannel
objects with a given buffering behaviour.createAny2One in interface BufferedChannelArrayFactoryn - the size of the array of channels.buffer - the buffer implementation to use.ChannelArrayFactory.createAny2One(int)public One2AnyChannel[] createOne2Any(ChannelDataStore buffer, int n)
One2AnyChannel
objects with a given buffering behaviour.createOne2Any in interface BufferedChannelArrayFactoryn - the size of the array of channels.buffer - the buffer implementation to use.ChannelArrayFactory.createOne2Any(int)public Any2AnyChannel[] createAny2Any(ChannelDataStore buffer, int n)
Any2AnyChannel
objects with a given buffering behaviour.createAny2Any in interface BufferedChannelArrayFactoryn - the size of the array of channels.buffer - the buffer implementation to use.ChannelArrayFactory.createAny2Any(int)Copyright © 1996–2019. All rights reserved.