Annotation Interface Informer
@Retention(RUNTIME)
@AroundConstruct
@Target({TYPE,ANNOTATION_TYPE})
@Bean
@DefaultScope(io.micronaut.context.annotation.Context.class)
public @interface Informer
Annotation used in combination with 
ResourceEventHandler will cause
 SharedIndexInformer be created by ResourceEventHandlerBeanListener.- 
Required Element SummaryRequired Elements
- 
Optional Element SummaryOptional ElementsModifier and TypeOptional ElementDescriptionInformer label selector.Informer label selector supplier.Watched resource namespace.String[]Watched resource namespaces.Namespaces supplier bean class.longPeriod in milliseconds which defines how often to check whether the listener need a resync.booleanIf set totrue, theSharedIndexInformerFactory.startAllRegisteredInformers()will wait on the informers created from this annotation to get synced (existing kubernetes objects loaded to the informer's in-memory storage) or predefined timeout (InformerConfiguration.getSyncTimeout()) gets expired.
- 
Field SummaryFields
- 
Field Details- 
ALL_NAMESPACES- See Also:
 
- 
RESOLVE_AUTOMATICALLY- See Also:
 
 
- 
- 
Element Details- 
apiTypeClass<? extends KubernetesObject> apiTypeThe resource type.- Returns:
- resource type.
 
- 
namespaceString namespaceWatched resource namespace. If empty then namespace is resolved byInformerNamespaceResolver. To watch resources from all namespaces configure this parameter toALL_NAMESPACES.- Returns:
- namespace name
 - Default:
- "RESOLVE_AUTOMATICALLY"
 
- 
namespacesString[] namespacesWatched resource namespaces. If empty then namespace is resolved byInformerNamespaceResolver.- Returns:
- array of namespace names
 - Default:
- {}
 
- 
namespacesSupplierNamespaces supplier bean class.- Returns:
- supplier class
 - Default:
- io.micronaut.kubernetes.client.openapi.informer.handler.EmptyNamespacesSupplier.class
 
- 
resyncCheckPeriodlong resyncCheckPeriodPeriod in milliseconds which defines how often to check whether the listener need a resync.- Returns:
- resync check period, if 0L returned then default minimal resync interval is used
 - Default:
- 0L
 
- 
labelSelectorString labelSelectorInformer label selector.- Returns:
- label selector
- See Also:
 - Default:
- ""
 
- 
labelSelectorSupplierInformer label selector supplier.- Returns:
- label selector supplier
- See Also:
 - Default:
- io.micronaut.kubernetes.client.openapi.informer.handler.EmptyLabelSupplier.class
 
- 
waitForInitialSyncboolean waitForInitialSyncIf set totrue, theSharedIndexInformerFactory.startAllRegisteredInformers()will wait on the informers created from this annotation to get synced (existing kubernetes objects loaded to the informer's in-memory storage) or predefined timeout (InformerConfiguration.getSyncTimeout()) gets expired.- Returns:
- trueif the informer start method needs to be blocked until informers are synced
 - Default:
- false
 
 
-