public class FileOutputChannelFactory extends Object implements OutputChannelFactory
| Constructor and Description |
|---|
FileOutputChannelFactory(File fileChannelsDirectory,
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.
|
public FileOutputChannelFactory(File fileChannelsDirectory, int frameSize)
public OutputChannel openChannel(int partitionNumber) throws IOException
OutputChannelFactoryopenChannel in interface OutputChannelFactoryIOExceptionpublic 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–2022 The Apache Software Foundation. All rights reserved.