Package io.micronaut.discovery.metadata
Interface ServiceInstanceMetadataContributor
@Indexed(ServiceInstanceMetadataContributor.class)
public interface ServiceInstanceMetadataContributor
Strategy interface for classes to contribute to
ServiceInstance
metadata
when registering an instance with a discovery service.- Since:
- 1.0
- Author:
- graemerocher
-
Method Summary
Modifier and TypeMethodDescriptionvoid
contribute
(ServiceInstance instance, Map<String, String> metadata) Contribute metadata to the givenServiceInstance
prior to registration.
-
Method Details
-
contribute
Contribute metadata to the givenServiceInstance
prior to registration.- Parameters:
instance
- The instancemetadata
- The metadata
-