public final class FileContentWriterFactory extends Object implements ContentWriterFactory
ContentWriterFactory that creates ContentWriter that will
write events to file directly.| Constructor and Description |
|---|
FileContentWriterFactory(StreamConfig streamConfig,
ConcurrentStreamWriter streamWriter,
Map<String,String> headers) |
| Modifier and Type | Method and Description |
|---|---|
ContentWriter |
create(Map<String,String> headers)
Creates a
ContentWriter with the given set of event headers added to each StreamEvent
written through the ContentWriter returned. |
Id.Stream |
getStream()
Returns the Id of the stream that all
ContentWriter created by this factory will write to. |
public FileContentWriterFactory(StreamConfig streamConfig, ConcurrentStreamWriter streamWriter, Map<String,String> headers) throws IOException
IOExceptionpublic Id.Stream getStream()
ContentWriterFactoryContentWriter created by this factory will write to.getStream in interface ContentWriterFactorypublic ContentWriter create(Map<String,String> headers) throws IOException
ContentWriterFactoryContentWriter with the given set of event headers added to each StreamEvent
written through the ContentWriter returned.create in interface ContentWriterFactoryIOExceptionCopyright © 2016 Cask Data, Inc. Licensed under the Apache License, Version 2.0.