Class IndexerComposite<ApiType extends io.kubernetes.client.common.KubernetesObject>
java.lang.Object
io.micronaut.kubernetes.discovery.informer.IndexerComposite<ApiType>
- Type Parameters:
ApiType- api type of the cache
@Internal
public class IndexerComposite<ApiType extends io.kubernetes.client.common.KubernetesObject>
extends Object
The
Indexer composite for the given ApiType that provides
access to the Store resources.- Since:
- 3.2
- Author:
- Pavol Gressa
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidAddIndexerto the composite.reactor.core.publisher.Mono<ApiType>getResource(@NonNull String name, @NonNull String namespace) Get resource from theIndexer.reactor.core.publisher.Flux<ApiType>getResources(@NonNull String namespace) Get all resources from theIndexerfor givennamespace.
-
Constructor Details
-
IndexerComposite
public IndexerComposite()
-
-
Method Details
-
add
protected void add(String namespace, io.kubernetes.client.informer.cache.Indexer<ApiType> sharedIndexInformer) AddIndexerto the composite.- Parameters:
namespace- namespace of indexersharedIndexInformer- indexer
-
getResource
public reactor.core.publisher.Mono<ApiType> getResource(@NonNull @NonNull String name, @NonNull @NonNull String namespace) Get resource from theIndexer.- Parameters:
name- resource namenamespace- resource namesapce- Returns:
- mono with the resource or empty mono
-
getResources
Get all resources from theIndexerfor givennamespace.- Parameters:
namespace- namespace name or null to get resources from all namespaces- Returns:
- mono with resources or empty mono
-