Package com.linecorp.armeria.client
Interface DnsCacheListener
- All Known Implementing Classes:
DnsAddressEndpointGroup
,DnsServiceEndpointGroup
,DnsTextEndpointGroup
Listens to the
DnsCache
events.-
Method Summary
Modifier and TypeMethodDescriptionvoid
onRemoval
(DnsQuestion question, @Nullable List<DnsRecord> records, @Nullable UnknownHostException cause) Invoked when a removal occurred.
-
Method Details
-
onRemoval
void onRemoval(DnsQuestion question, @Nullable @Nullable List<DnsRecord> records, @Nullable @Nullable UnknownHostException cause) Invoked when a removal occurred.- Parameters:
question
- the DNS question.records
- the result of a successful DNS resolution.null
if failed.cause
- the cause of a failed DNS resolution.null
if succeeded.
-