Class DefaultServiceInstanceIdGenerator

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String generateId​(io.micronaut.context.env.Environment environment, ServiceInstance serviceInstance)
      Generates a service ID.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DefaultServiceInstanceIdGenerator

        protected DefaultServiceInstanceIdGenerator()
        Default constructor.
    • Method Detail

      • generateId

        @NonNull
        public java.lang.String generateId​(io.micronaut.context.env.Environment environment,
                                           ServiceInstance serviceInstance)
        Description copied from interface: ServiceInstanceIdGenerator
        Generates a service ID.
        Specified by:
        generateId in interface ServiceInstanceIdGenerator
        Parameters:
        environment - The environment
        serviceInstance - The service instance
        Returns:
        The generated ID. Never null