public class EventReceiverFirehoseFactory extends Object implements FirehoseFactory<InputRowParser<Map<String,Object>>>
EventReceiver interface. Can also register these
firehoses with an ServiceAnnouncingChatHandlerProvider.| Modifier and Type | Class and Description |
|---|---|
class |
EventReceiverFirehoseFactory.EventReceiverFirehose
Apart from adhering to
Firehose contract regarding concurrency, this class has two methods that might be
called concurrently with any other methods and each other, from arbitrary number of threads: EventReceiverFirehoseFactory.EventReceiverFirehose.addAll(java.io.InputStream, javax.servlet.http.HttpServletRequest) and
EventReceiverFirehoseFactory.EventReceiverFirehose.shutdown(java.lang.String, javax.servlet.http.HttpServletRequest). |
| Modifier and Type | Field and Description |
|---|---|
static int |
MAX_FIREHOSE_PRODUCERS |
| Constructor and Description |
|---|
EventReceiverFirehoseFactory(String serviceName,
Integer bufferSize,
Long maxIdleTimeMillis,
ChatHandlerProvider chatHandlerProvider,
com.fasterxml.jackson.databind.ObjectMapper jsonMapper,
com.fasterxml.jackson.databind.ObjectMapper smileMapper,
EventReceiverFirehoseRegister eventReceiverFirehoseRegister,
AuthorizerMapper authorizerMapper) |
| Modifier and Type | Method and Description |
|---|---|
Firehose |
connect(InputRowParser<Map<String,Object>> firehoseParser,
File temporaryDirectory) |
int |
getBufferSize() |
long |
getMaxIdleTimeMillis()
Keeping the legacy 'maxIdleTime' property name for backward compatibility.
|
String |
getServiceName() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitconnect, connectForSampler, isSplittablepublic static final int MAX_FIREHOSE_PRODUCERS
public EventReceiverFirehoseFactory(String serviceName, Integer bufferSize, @Nullable Long maxIdleTimeMillis, ChatHandlerProvider chatHandlerProvider, com.fasterxml.jackson.databind.ObjectMapper jsonMapper, com.fasterxml.jackson.databind.ObjectMapper smileMapper, EventReceiverFirehoseRegister eventReceiverFirehoseRegister, AuthorizerMapper authorizerMapper)
public Firehose connect(InputRowParser<Map<String,Object>> firehoseParser, File temporaryDirectory)
connect in interface FirehoseFactory<InputRowParser<Map<String,Object>>>public String getServiceName()
public int getBufferSize()
public long getMaxIdleTimeMillis()
Copyright © 2011–2020 The Apache Software Foundation. All rights reserved.