public class ComposingOutputChannelFactory extends Object implements OutputChannelFactory
| Constructor and Description |
|---|
ComposingOutputChannelFactory(List<OutputChannelFactory> channelFactories,
int frameSize) |
| Modifier and Type | Method and Description |
|---|---|
OutputChannel |
openChannel(int partitionNumber)
Create a channel pair tagged with a particular partition number.
|
OutputChannel |
openNilChannel(int partitionNumber)
Create a non-writable, always-empty channel pair tagged with a particular partition number.
|
PartitionedOutputChannel |
openPartitionedChannel(String name,
boolean deleteAfterRead)
Create a channel pair tagged with a particular name and a flag to delete the channel data after its read.
|
public ComposingOutputChannelFactory(List<OutputChannelFactory> channelFactories, int frameSize)
public OutputChannel openChannel(int partitionNumber)
OutputChannelFactoryopenChannel in interface OutputChannelFactorypublic PartitionedOutputChannel openPartitionedChannel(String name, boolean deleteAfterRead)
OutputChannelFactoryopenPartitionedChannel in interface OutputChannelFactorypublic OutputChannel openNilChannel(int partitionNumber)
OutputChannelFactoryOutputChannel.getWritableChannel() on this nil channel pair will result in an error. Calling
OutputChannel.getReadableChannel() will return an empty channel.openNilChannel in interface OutputChannelFactoryCopyright © 2011–2023 The Apache Software Foundation. All rights reserved.