Interface SharedInformerFactory
-
public interface SharedInformerFactory
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description voidaddSharedInformerEventListener(SharedInformerEventListener event)Deprecated.useSharedIndexInformer.stopped()method to get notified when an informer stops.<T> SharedIndexInformer<T>getExistingSharedIndexInformer(Class<T> apiTypeClass)Gets existing shared index informer, return null if the requesting informer is never constructed.SharedInformerFactoryinNamespace(String namespace)Deprecated.useInformableinstead<T extends io.fabric8.kubernetes.api.model.HasMetadata>
SharedIndexInformer<T>sharedIndexInformerFor(Class<T> apiTypeClass, long resyncPeriodInMillis)Constructs and returns a shared index informer with resync period specified.Future<Void>startAllRegisteredInformers()Starts all registered informers in an asynchronous fashion.voidstopAllRegisteredInformers()Stop all registered informers and shut down thread pool.SharedInformerFactorywithName(String name)Deprecated.useInformableinstead
-
-
-
Method Detail
-
inNamespace
@Deprecated SharedInformerFactory inNamespace(String namespace)
Deprecated.useInformableinsteadConfigure Namespace forSharedInformerFactory- Parameters:
namespace- namespace to configure- Returns:
SharedInformerFactorywith namespace configured
-
withName
@Deprecated SharedInformerFactory withName(String name)
Deprecated.useInformableinsteadConfigure Name forSharedInformerFactory- Parameters:
name- name to be configured- Returns:
SharedInformerFactorywith name configured
-
sharedIndexInformerFor
<T extends io.fabric8.kubernetes.api.model.HasMetadata> SharedIndexInformer<T> sharedIndexInformerFor(Class<T> apiTypeClass, long resyncPeriodInMillis)
Constructs and returns a shared index informer with resync period specified. And the informer cache will be overwritten. Note:It watches for events in ALL NAMESPACES.- Type Parameters:
T- the type parameter (should extendHasMetadataand implementNamespaced) if Namespace scoped resource- Parameters:
apiTypeClass- apiType classresyncPeriodInMillis- resync period in milliseconds- Returns:
- the shared index informer
-
getExistingSharedIndexInformer
<T> SharedIndexInformer<T> getExistingSharedIndexInformer(Class<T> apiTypeClass)
Gets existing shared index informer, return null if the requesting informer is never constructed. If there are multiple SharedIndexInformer objects corresponding to a Kubernetes resource, then it returns the first one- Type Parameters:
T- type of API type- Parameters:
apiTypeClass- API type class- Returns:
- SharedIndexInformer object
-
startAllRegisteredInformers
Future<Void> startAllRegisteredInformers()
Starts all registered informers in an asynchronous fashion.- Returns:
Futurefor status of all started informer tasks.
-
stopAllRegisteredInformers
void stopAllRegisteredInformers()
Stop all registered informers and shut down thread pool.
-
addSharedInformerEventListener
@Deprecated void addSharedInformerEventListener(SharedInformerEventListener event)
Deprecated.useSharedIndexInformer.stopped()method to get notified when an informer stops.
-
-