public class TimedShutoffFirehoseFactory extends Object implements FirehoseFactory<InputRowParser>
Firehose created by this factory spins up and manages one thread for calling Firehose.close()
asynchronously at the specified shutoffTime.| Constructor and Description |
|---|
TimedShutoffFirehoseFactory(FirehoseFactory delegateFactory,
org.joda.time.DateTime shutoffTime) |
| Modifier and Type | Method and Description |
|---|---|
Firehose |
connect(InputRowParser parser,
File temporaryDirectory) |
FirehoseFactory |
getDelegateFactory() |
org.joda.time.DateTime |
getShutoffTime() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitconnect, connectForSampler, isSplittablepublic TimedShutoffFirehoseFactory(FirehoseFactory delegateFactory, org.joda.time.DateTime shutoffTime)
public Firehose connect(InputRowParser parser, File temporaryDirectory) throws IOException
connect in interface FirehoseFactory<InputRowParser>IOExceptionpublic FirehoseFactory getDelegateFactory()
public org.joda.time.DateTime getShutoffTime()
Copyright © 2011–2021 The Apache Software Foundation. All rights reserved.