public class KafkaLookupExtractorFactory extends Object implements LookupExtractorFactory
| Constructor and Description | 
|---|
KafkaLookupExtractorFactory(NamespaceExtractionCacheManager cacheManager,
                           String kafkaTopic,
                           Map<String,String> kafkaProperties)  | 
KafkaLookupExtractorFactory(NamespaceExtractionCacheManager cacheManager,
                           String kafkaTopic,
                           Map<String,String> kafkaProperties,
                           long connectTimeout,
                           boolean injective)  | 
| Modifier and Type | Method and Description | 
|---|---|
boolean | 
close()
   This method will be called to stop the LookupExtractor upon deletion. 
 | 
LookupExtractor | 
get()  | 
long | 
getCompletedEventCount()  | 
long | 
getConnectTimeout()  | 
LookupIntrospectHandler | 
getIntrospectHandler()  | 
Map<String,String> | 
getKafkaProperties()  | 
String | 
getKafkaTopic()  | 
boolean | 
isInjective()  | 
boolean | 
replaces(LookupExtractorFactory other)
This method is deprecated and is not removed only to allow 0.10.0 to 0.10.1 transition. 
 | 
boolean | 
start()
   This method will be called to start the LookupExtractor upon registered
   Calling start multiple times should return true if successfully started. 
 | 
public KafkaLookupExtractorFactory(NamespaceExtractionCacheManager cacheManager, String kafkaTopic, Map<String,String> kafkaProperties, @Min(value=0L) long connectTimeout, boolean injective)
public KafkaLookupExtractorFactory(NamespaceExtractionCacheManager cacheManager, String kafkaTopic, Map<String,String> kafkaProperties)
public String getKafkaTopic()
public long getConnectTimeout()
public boolean isInjective()
public boolean start()
LookupExtractorFactoryThis method will be called to start the LookupExtractor upon registered Calling start multiple times should return true if successfully started.
start in interface LookupExtractorFactoryLookupExtractor otherwise returns true.public boolean close()
LookupExtractorFactoryThis method will be called to stop the LookupExtractor upon deletion. Calling this method multiple times should always return true if successfully closed.
close in interface LookupExtractorFactoryLookupExtractor otherwise returns truepublic boolean replaces(@Nullable LookupExtractorFactory other)
LookupExtractorFactoryreplaces in interface LookupExtractorFactory@Nullable public LookupIntrospectHandler getIntrospectHandler()
getIntrospectHandler in interface LookupExtractorFactorynull if it is not supported.
 This will be called once per HTTP request to introspect the actual lookup.public LookupExtractor get()
get in interface com.google.common.base.Supplier<LookupExtractor>public long getCompletedEventCount()
Copyright © 2011–2018. All rights reserved.