public class SharedInformerFactory
extends java.lang.Object
Constructor and Description |
---|
SharedInformerFactory()
Constructor w/ default thread pool.
|
SharedInformerFactory(java.util.concurrent.ExecutorService threadPool)
Constructor w/ thread pool specified.
|
Modifier and Type | Method and Description |
---|---|
<ApiType,ApiListType> |
sharedIndexInformerFor(java.util.function.Function<CallGeneratorParams,com.squareup.okhttp.Call> callGenerator,
java.lang.Class<ApiType> apiTypeClass,
java.lang.Class<ApiListType> apiListTypeClass)
Shared index informer for shared index informer.
|
<ApiType,ApiListType> |
sharedIndexInformerFor(java.util.function.Function<CallGeneratorParams,com.squareup.okhttp.Call> callGenerator,
java.lang.Class<ApiType> apiTypeClass,
java.lang.Class<ApiListType> apiListTypeClass,
long resyncPeriodInMillis)
Constructs and returns a shared index informer w/ resync period specified.
|
void |
startAllRegisteredInformers()
Start all registered informers.
|
void |
stopAllRegisteredInformers()
Stop all registered informers.
|
public SharedInformerFactory()
public SharedInformerFactory(java.util.concurrent.ExecutorService threadPool)
threadPool
- specified thread poolpublic <ApiType,ApiListType> SharedIndexInformer<ApiType> sharedIndexInformerFor(java.util.function.Function<CallGeneratorParams,com.squareup.okhttp.Call> callGenerator, java.lang.Class<ApiType> apiTypeClass, java.lang.Class<ApiListType> apiListTypeClass)
ApiType
- the type parameterApiListType
- the type parametercallGenerator
- the call generatorapiTypeClass
- the api type classapiListTypeClass
- the api list type classpublic <ApiType,ApiListType> SharedIndexInformer<ApiType> sharedIndexInformerFor(java.util.function.Function<CallGeneratorParams,com.squareup.okhttp.Call> callGenerator, java.lang.Class<ApiType> apiTypeClass, java.lang.Class<ApiListType> apiListTypeClass, long resyncPeriodInMillis)
ApiType
- the type parameterApiListType
- the type parametercallGenerator
- the call generatorapiTypeClass
- the api type classapiListTypeClass
- the api list type classresyncPeriodInMillis
- the resync period in millispublic void startAllRegisteredInformers()
public void stopAllRegisteredInformers()
Copyright © 2019. All rights reserved.