public class FileOutputChannelFactory extends Object implements OutputChannelFactory
Constructor and Description |
---|
FileOutputChannelFactory(File fileChannelsDirectory,
int frameSize,
ByteTracker byteTracker) |
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 FileOutputChannelFactory(File fileChannelsDirectory, int frameSize, @Nullable ByteTracker byteTracker)
public OutputChannel openChannel(int partitionNumber) throws IOException
OutputChannelFactory
openChannel
in interface OutputChannelFactory
IOException
public PartitionedOutputChannel openPartitionedChannel(String name, boolean deleteAfterRead) throws IOException
OutputChannelFactory
openPartitionedChannel
in interface OutputChannelFactory
IOException
public OutputChannel openNilChannel(int partitionNumber)
OutputChannelFactory
OutputChannel.getWritableChannel()
on this nil channel pair will result in an error. Calling
OutputChannel.getReadableChannel()
will return an empty channel.openNilChannel
in interface OutputChannelFactory
Copyright © 2011–2023 The Apache Software Foundation. All rights reserved.