Module io.netty5.resolver.dns
Package io.netty5.resolver.dns
Class BiDnsQueryLifecycleObserverFactory
- java.lang.Object
-
- io.netty5.resolver.dns.BiDnsQueryLifecycleObserverFactory
-
- All Implemented Interfaces:
DnsQueryLifecycleObserverFactory
public final class BiDnsQueryLifecycleObserverFactory extends Object implements DnsQueryLifecycleObserverFactory
Combines twoDnsQueryLifecycleObserverFactory
into a singleDnsQueryLifecycleObserverFactory
.
-
-
Constructor Summary
Constructors Constructor Description BiDnsQueryLifecycleObserverFactory(DnsQueryLifecycleObserverFactory a, DnsQueryLifecycleObserverFactory b)
Create a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DnsQueryLifecycleObserver
newDnsQueryLifecycleObserver(DnsQuestion question)
Create a new instance of aDnsQueryLifecycleObserver
.
-
-
-
Constructor Detail
-
BiDnsQueryLifecycleObserverFactory
public BiDnsQueryLifecycleObserverFactory(DnsQueryLifecycleObserverFactory a, DnsQueryLifecycleObserverFactory b)
Create a new instance.- Parameters:
a
- TheDnsQueryLifecycleObserverFactory
that will receive events first.b
- TheDnsQueryLifecycleObserverFactory
that will receive events second.
-
-
Method Detail
-
newDnsQueryLifecycleObserver
public DnsQueryLifecycleObserver newDnsQueryLifecycleObserver(DnsQuestion question)
Description copied from interface:DnsQueryLifecycleObserverFactory
Create a new instance of aDnsQueryLifecycleObserver
. This will be called at the start of a new query.- Specified by:
newDnsQueryLifecycleObserver
in interfaceDnsQueryLifecycleObserverFactory
- Parameters:
question
- The question being asked.- Returns:
- a new instance of a
DnsQueryLifecycleObserver
.
-
-