Class MachineIdGenerator

java.lang.Object
io.quarkus.netty.runtime.MachineIdGenerator
All Implemented Interfaces:
Supplier<String>

public final class MachineIdGenerator extends Object implements Supplier<String>
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    get()
    We have our own implementation to generate the io.netty.machineId to prevent potential slowness when generating/inferring the default machine id in io.netty.channel.DefaultChannelId implementation, which iterates over the NetworkInterfaces to determine the "best" machine id

    Methods inherited from class java.lang.Object

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

    • MachineIdGenerator

      public MachineIdGenerator()
  • Method Details

    • get

      public String get()
      We have our own implementation to generate the io.netty.machineId to prevent potential slowness when generating/inferring the default machine id in io.netty.channel.DefaultChannelId implementation, which iterates over the NetworkInterfaces to determine the "best" machine id
      Specified by:
      get in interface Supplier<String>