Modifier and Type | Field and Description |
---|---|
private static volatile int | |
private static final String | |
private static final String | |
private static final String | |
private static final String | |
public static final int | |
public static final int | |
private static volatile int | |
private static final String | |
private static final String | |
public static final int | |
private static boolean | |
private static boolean | |
private static volatile int |
Access | Constructor and Description |
---|---|
public |
Modifier and Type | Method and Description |
---|---|
private static void | |
public static int | |
public static int | |
private static Integer | |
public static int | |
public static synchronized void | setIfNotSet(int
the value in seconds for how long the lookup
should be cached newPolicy)Sets the cache policy for successful lookups if the user has not already specified a cache policy for it using a command-property. |
public static void | setNegativeIfNotSet(int
the value in seconds for how long the lookup
should be cached newPolicy)Sets the cache policy for negative lookups if the user has not already specified a cache policy for it using a command-property. |
cachePolicy | back to summary |
---|---|
private static volatile int cachePolicy |
cachePolicyProp | back to summary |
---|---|
private static final String cachePolicyProp |
cachePolicyPropFallback | back to summary |
---|---|
private static final String cachePolicyPropFallback |
cacheStalePolicyProp | back to summary |
---|---|
private static final String cacheStalePolicyProp |
cacheStalePolicyPropFallback | back to summary |
---|---|
private static final String cacheStalePolicyPropFallback |
DEFAULT_POSITIVE | back to summary |
---|---|
public static final int DEFAULT_POSITIVE |
FOREVER | back to summary |
---|---|
public static final int FOREVER |
negativeCachePolicy | back to summary |
---|---|
private static volatile int negativeCachePolicy |
negativeCachePolicyProp | back to summary |
---|---|
private static final String negativeCachePolicyProp |
negativeCachePolicyPropFallback | back to summary |
---|---|
private static final String negativeCachePolicyPropFallback |
NEVER | back to summary |
---|---|
public static final int NEVER |
propertyNegativeSet | back to summary |
---|---|
private static boolean propertyNegativeSet |
propertySet | back to summary |
---|---|
private static boolean propertySet |
staleCachePolicy | back to summary |
---|---|
private static volatile int staleCachePolicy |
InetAddressCachePolicy | back to summary |
---|---|
public InetAddressCachePolicy() |
checkValue | back to summary |
---|---|
private static void checkValue(int newPolicy, int oldPolicy) |
get | back to summary |
---|---|
public static int get() |
getNegative | back to summary |
---|---|
public static int getNegative() |
getProperty | back to summary |
---|---|
private static Integer getProperty(String cachePolicyProp, String cachePolicyPropFallback) |
getStale | back to summary |
---|---|
public static int getStale() |
setIfNotSet | back to summary |
---|---|
public static synchronized void setIfNotSet(int newPolicy) Sets the cache policy for successful lookups if the user has not already specified a cache policy for it using a command-property.
|
setNegativeIfNotSet | back to summary |
---|---|
public static void setNegativeIfNotSet(int newPolicy) Sets the cache policy for negative lookups if the user has not already specified a cache policy for it using a command-property.
|