public class PollingLookupFactory extends Object implements LookupExtractorFactory
Modifier | Constructor and Description |
---|---|
|
PollingLookupFactory(org.joda.time.Period pollPeriod,
DataFetcher dataFetcher,
PollingCacheFactory cacheFactory) |
protected |
PollingLookupFactory(org.joda.time.Period pollPeriod,
DataFetcher dataFetcher,
PollingCacheFactory pollingCacheFactory,
PollingLookup pollingLookup) |
Modifier and Type | Method and Description |
---|---|
boolean |
close()
This method will be called to stop the LookupExtractor upon deletion.
|
boolean |
equals(Object o) |
PollingLookup |
get() |
LookupIntrospectHandler |
getIntrospectHandler() |
boolean |
replaces(LookupExtractorFactory lookupExtractorFactory)
Determine if this LookupExtractorFactory should replace some other LookupExtractorFactory.
|
boolean |
start()
This method will be called to start the LookupExtractor upon registered
Calling start multiple times should return true if successfully started.
|
public PollingLookupFactory(org.joda.time.Period pollPeriod, DataFetcher dataFetcher, PollingCacheFactory cacheFactory)
protected PollingLookupFactory(org.joda.time.Period pollPeriod, DataFetcher dataFetcher, PollingCacheFactory pollingCacheFactory, PollingLookup pollingLookup)
public boolean start()
LookupExtractorFactory
This method will be called to start the LookupExtractor upon registered Calling start multiple times should return true if successfully started.
start
in interface LookupExtractorFactory
LookupExtractor
otherwise returns true.public boolean close()
LookupExtractorFactory
This 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 LookupExtractorFactory
LookupExtractor
otherwise returns truepublic boolean replaces(@Nullable LookupExtractorFactory lookupExtractorFactory)
LookupExtractorFactory
replaces
in interface LookupExtractorFactory
lookupExtractorFactory
- Some other LookupExtractorFactory which might need replaced@Nullable public LookupIntrospectHandler getIntrospectHandler()
getIntrospectHandler
in interface LookupExtractorFactory
null
if it is not supported.
This will be called once per HTTP request to introspect the actual lookup.public PollingLookup get()
get
in interface com.google.common.base.Supplier<LookupExtractor>
Copyright © 2011–2017. All rights reserved.