public final class sun.net.InetAddressCachePolicy
minor version: 0
major version: 59
flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
this_class: sun.net.InetAddressCachePolicy
super_class: java.lang.Object
{
private static final java.lang.String cachePolicyProp;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: "networkaddress.cache.ttl"
private static final java.lang.String cachePolicyPropFallback;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: "sun.net.inetaddr.ttl"
private static final java.lang.String negativeCachePolicyProp;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: "networkaddress.cache.negative.ttl"
private static final java.lang.String negativeCachePolicyPropFallback;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: "sun.net.inetaddr.negative.ttl"
public static final int FOREVER;
descriptor: I
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: -1
public static final int NEVER;
descriptor: I
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: 0
public static final int DEFAULT_POSITIVE;
descriptor: I
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: 30
private static volatile int cachePolicy;
descriptor: I
flags: (0x004a) ACC_PRIVATE, ACC_STATIC, ACC_VOLATILE
private static volatile int negativeCachePolicy;
descriptor: I
flags: (0x004a) ACC_PRIVATE, ACC_STATIC, ACC_VOLATILE
private static boolean propertySet;
descriptor: Z
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
private static boolean propertyNegativeSet;
descriptor: Z
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=1, args_size=0
0: iconst_m1
putstatic sun.net.InetAddressCachePolicy.cachePolicy:I
1: iconst_0
putstatic sun.net.InetAddressCachePolicy.negativeCachePolicy:I
2: new sun.net.InetAddressCachePolicy$1
dup
invokespecial sun.net.InetAddressCachePolicy$1.<init>:()V
3: invokestatic java.security.AccessController.doPrivileged:(Ljava/security/PrivilegedAction;)Ljava/lang/Object;
checkcast java.lang.Integer
astore 0
start local 0 4: aload 0
ifnull 10
5: aload 0
invokevirtual java.lang.Integer.intValue:()I
ifge 6
iconst_m1
goto 7
StackMap locals: java.lang.Integer
StackMap stack:
6: aload 0
invokevirtual java.lang.Integer.intValue:()I
StackMap locals:
StackMap stack: int
7: putstatic sun.net.InetAddressCachePolicy.cachePolicy:I
8: iconst_1
putstatic sun.net.InetAddressCachePolicy.propertySet:Z
9: goto 12
10: StackMap locals:
StackMap stack:
invokestatic java.lang.System.getSecurityManager:()Ljava/lang/SecurityManager;
ifnonnull 12
11: bipush 30
putstatic sun.net.InetAddressCachePolicy.cachePolicy:I
12: StackMap locals:
StackMap stack:
new sun.net.InetAddressCachePolicy$2
dup
invokespecial sun.net.InetAddressCachePolicy$2.<init>:()V
13: invokestatic java.security.AccessController.doPrivileged:(Ljava/security/PrivilegedAction;)Ljava/lang/Object;
checkcast java.lang.Integer
astore 0
14: aload 0
ifnull 19
15: aload 0
invokevirtual java.lang.Integer.intValue:()I
ifge 16
iconst_m1
goto 17
StackMap locals:
StackMap stack:
16: aload 0
invokevirtual java.lang.Integer.intValue:()I
StackMap locals:
StackMap stack: int
17: putstatic sun.net.InetAddressCachePolicy.negativeCachePolicy:I
18: iconst_1
putstatic sun.net.InetAddressCachePolicy.propertyNegativeSet:Z
end local 0 19: StackMap locals:
StackMap stack:
return
LocalVariableTable:
Start End Slot Name Signature
4 19 0 tmp Ljava/lang/Integer;
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/net/InetAddressCachePolicy;
public static int get();
descriptor: ()I
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: getstatic sun.net.InetAddressCachePolicy.cachePolicy:I
ireturn
LocalVariableTable:
Start End Slot Name Signature
public static int getNegative();
descriptor: ()I
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: getstatic sun.net.InetAddressCachePolicy.negativeCachePolicy:I
ireturn
LocalVariableTable:
Start End Slot Name Signature
public static synchronized void setIfNotSet(int);
descriptor: (I)V
flags: (0x0029) ACC_PUBLIC, ACC_STATIC, ACC_SYNCHRONIZED
Code:
stack=2, locals=1, args_size=1
start local 0 0: getstatic sun.net.InetAddressCachePolicy.propertySet:Z
ifne 3
1: iload 0
getstatic sun.net.InetAddressCachePolicy.cachePolicy:I
invokestatic sun.net.InetAddressCachePolicy.checkValue:(II)V
2: iload 0
putstatic sun.net.InetAddressCachePolicy.cachePolicy:I
3: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 newPolicy I
MethodParameters:
Name Flags
newPolicy
public static void setNegativeIfNotSet(int);
descriptor: (I)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: getstatic sun.net.InetAddressCachePolicy.propertyNegativeSet:Z
ifne 4
1: iload 0
ifge 2
iconst_m1
goto 3
StackMap locals:
StackMap stack:
2: iload 0
StackMap locals:
StackMap stack: int
3: putstatic sun.net.InetAddressCachePolicy.negativeCachePolicy:I
4: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 newPolicy I
MethodParameters:
Name Flags
newPolicy
private static void checkValue(int, int);
descriptor: (II)V
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: iload 0
iconst_m1
if_icmpne 2
1: return
2: StackMap locals:
StackMap stack:
iload 1
iconst_m1
if_icmpeq 5
3: iload 0
iload 1
if_icmplt 5
4: iload 0
iconst_m1
if_icmpge 7
5: StackMap locals:
StackMap stack:
new java.lang.SecurityException
dup
ldc "can't make InetAddress cache more lax"
6: invokespecial java.lang.SecurityException.<init>:(Ljava/lang/String;)V
athrow
7: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 newPolicy I
0 8 1 oldPolicy I
MethodParameters:
Name Flags
newPolicy
oldPolicy
}
SourceFile: "InetAddressCachePolicy.java"
NestMembers:
sun.net.InetAddressCachePolicy$1 sun.net.InetAddressCachePolicy$2
InnerClasses:
sun.net.InetAddressCachePolicy$1
sun.net.InetAddressCachePolicy$2