Interface DnsProvider

All Known Implementing Classes:
InetAddressDnsProvider

public interface DnsProvider
Where as it is possible to plug in alternative DNS implementations it is not recommended.

Internal API

  • Method Summary

    Modifier and Type
    Method
    Description
    Class<? extends Actor>
    DNS resolver actor.
    Cache implementation that can be accessed via Dns(system) to avoid asks to the resolver actors.
    Class<? extends Actor>
    DNS manager class.
  • Method Details

    • actorClass

      Class<? extends Actor> actorClass()
      DNS resolver actor. Should respond to pekko.io.dns.DnsProtocol.Resolve with pekko.io.dns.DnsProtocol.Resolved
    • cache

      Dns cache()
      Cache implementation that can be accessed via Dns(system) to avoid asks to the resolver actors. It is not recommended to override the default SimpleDnsCache
    • managerClass

      Class<? extends Actor> managerClass()
      DNS manager class. Is responsible for creating resolvers and doing any cache cleanup. The DNS extension will create one of these Actors. It should have a ctr that accepts a DnsExt