Package io.micronaut.discovery
Interface ServiceInstanceIdGenerator
- All Known Implementing Classes:
DefaultServiceInstanceIdGenerator
public interface ServiceInstanceIdGenerator
Interface for generating IDs for
ServiceInstance
.- Since:
- 1.0
- Author:
- graemerocher
-
Method Summary
Modifier and TypeMethodDescriptiongenerateId
(Environment environment, ServiceInstance serviceInstance) Generates a service ID.
-
Method Details
-
generateId
Generates a service ID.- Parameters:
environment
- The environmentserviceInstance
- The service instance- Returns:
- The generated ID. Never null
-