public interface OutputChannelFactory
| 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.
|
OutputChannel openChannel(int partitionNumber) throws IOException
IOExceptionPartitionedOutputChannel openPartitionedChannel(String name, boolean deleteAfterRead) throws IOException
IOExceptionOutputChannel openNilChannel(int partitionNumber)
OutputChannel.getWritableChannel() on this nil channel pair will result in an error. Calling
OutputChannel.getReadableChannel() will return an empty channel.Copyright © 2011–2023 The Apache Software Foundation. All rights reserved.