public class SharedInformerFactory
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected java.util.Map<java.lang.reflect.Type,SharedIndexInformer> |
informers |
Constructor and Description |
---|
SharedInformerFactory()
Constructor w/ default thread pool.
|
SharedInformerFactory(io.kubernetes.client.ApiClient apiClient)
Constructor w/ api client specified and default thread pool.
|
SharedInformerFactory(io.kubernetes.client.ApiClient client,
java.util.concurrent.ExecutorService threadPool)
Constructor w/ api client and thread pool specified.
|
SharedInformerFactory(java.util.concurrent.ExecutorService threadPool)
Constructor w/ thread pool specified.
|
Modifier and Type | Method and Description |
---|---|
<ApiType> SharedIndexInformer<ApiType> |
getExistingSharedIndexInformer(java.lang.Class<ApiType> apiTypeClass)
Gets existing shared index informer, return null if the requesting informer is never
constructed.
|
<ApiType,ApiListType> |
sharedIndexInformerFor(CallGenerator callGenerator,
java.lang.Class<ApiType> apiTypeClass,
java.lang.Class<ApiListType> apiListTypeClass)
Shared index informer for shared index informer.
|
<ApiType,ApiListType> |
sharedIndexInformerFor(CallGenerator 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.
|
protected java.util.Map<java.lang.reflect.Type,SharedIndexInformer> informers
public SharedInformerFactory()
public SharedInformerFactory(io.kubernetes.client.ApiClient apiClient)
public SharedInformerFactory(java.util.concurrent.ExecutorService threadPool)
threadPool
- specified thread poolpublic SharedInformerFactory(io.kubernetes.client.ApiClient client, java.util.concurrent.ExecutorService threadPool)
client
- specific api clientthreadPool
- specified thread poolpublic <ApiType,ApiListType> SharedIndexInformer<ApiType> sharedIndexInformerFor(CallGenerator 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(CallGenerator 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 <ApiType> SharedIndexInformer<ApiType> getExistingSharedIndexInformer(java.lang.Class<ApiType> apiTypeClass)
ApiType
- the type parameterapiTypeClass
- the api type classpublic void startAllRegisteredInformers()
public void stopAllRegisteredInformers()
Copyright © 2019. All rights reserved.