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
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
AddIndexer
to 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 theIndexer
for givennamespace
.
-
Constructor Details
-
IndexerComposite
public IndexerComposite()
-
-
Method Details
-
add
protected void add(String namespace, io.kubernetes.client.informer.cache.Indexer<ApiType> sharedIndexInformer) AddIndexer
to 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 theIndexer
for givennamespace
.- Parameters:
namespace
- namespace name or null to get resources from all namespaces- Returns:
- mono with resources or empty mono
-