@Singleton public class DefaultServiceInstanceIdGenerator extends Object implements ServiceInstanceIdGenerator
Modifier | Constructor and Description |
---|---|
protected |
DefaultServiceInstanceIdGenerator()
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
String |
generateId(Environment environment,
ServiceInstance serviceInstance)
Generates a service ID.
|
protected DefaultServiceInstanceIdGenerator()
@NonNull public String generateId(Environment environment, ServiceInstance serviceInstance)
ServiceInstanceIdGenerator
generateId
in interface ServiceInstanceIdGenerator
environment
- The environmentserviceInstance
- The service instance