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.
  • Field Details

  • Element Details

    • namespace

      String namespace
      Watched resource namespace. If empty then namespace is resolved by InformerNamespaceResolver. To watch resources from all namespaces configure this parameter to ALL_NAMESPACES.
      Returns:
      namespace name
      Default:
      "RESOLVE_AUTOMATICALLY"
    • namespaces

      String[] namespaces
      Watched resource namespaces. If empty then namespace is resolved by InformerNamespaceResolver.
      Returns:
      array of namespace names
      Default:
      {}
    • namespacesSupplier

      Class<? extends Supplier<String[]>> namespacesSupplier
      Namespaces supplier bean class.
      Returns:
      supplier class
      Default:
      io.micronaut.kubernetes.client.openapi.informer.handler.EmptyNamespacesSupplier.class
    • resyncCheckPeriod

      long resyncCheckPeriod
      Period 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
    • labelSelector

      String labelSelector
      Informer label selector.
      Returns:
      label selector
      See Also:
      Default:
      ""
    • labelSelectorSupplier

      Class<? extends Supplier<String>> labelSelectorSupplier
      Informer label selector supplier.
      Returns:
      label selector supplier
      See Also:
      Default:
      io.micronaut.kubernetes.client.openapi.informer.handler.EmptyLabelSupplier.class