Class LocalDnsServeStale
java.lang.Object
com.azure.core.util.ExpandableStringEnum<LocalDnsServeStale>
com.azure.resourcemanager.containerservice.models.LocalDnsServeStale
- All Implemented Interfaces:
com.azure.core.util.ExpandableEnum<String>
public final class LocalDnsServeStale
extends com.azure.core.util.ExpandableStringEnum<LocalDnsServeStale>
Policy for serving stale data. See [cache plugin](https://coredns.io/plugins/cache) for more information.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final LocalDnsServeStaleDisable serving stale data.static final LocalDnsServeStaleServe stale data immediately.static final LocalDnsServeStaleServe stale data with verification. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic LocalDnsServeStalefromString(String name) Creates or finds a LocalDnsServeStale from its string representation.static Collection<LocalDnsServeStale> values()Gets known LocalDnsServeStale values.Methods inherited from class com.azure.core.util.ExpandableStringEnum
equals, fromString, getValue, hashCode, toString, values
-
Field Details
-
VERIFY
Serve stale data with verification. First verify that an entry is still unavailable from the source before sending the expired entry to the client. See [cache plugin](https://coredns.io/plugins/cache) for more information. -
IMMEDIATE
Serve stale data immediately. Send the expired entry to the client before checking to see if the entry is available from the source. See [cache plugin](https://coredns.io/plugins/cache) for more information. -
DISABLE
Disable serving stale data.
-
-
Constructor Details
-
LocalDnsServeStale
Deprecated.Use thefromString(String)factory method.Creates a new instance of LocalDnsServeStale value.
-
-
Method Details
-
fromString
Creates or finds a LocalDnsServeStale from its string representation.- Parameters:
name- a name to look for.- Returns:
- the corresponding LocalDnsServeStale.
-
values
Gets known LocalDnsServeStale values.- Returns:
- known LocalDnsServeStale values.
-
fromString(String)factory method.