final class io.netty.resolver.dns.ShuffledDnsServerAddressStream implements io.netty.resolver.dns.DnsServerAddressStream
minor version: 0
major version: 59
flags: flags: (0x0030) ACC_FINAL, ACC_SUPER
this_class: io.netty.resolver.dns.ShuffledDnsServerAddressStream
super_class: java.lang.Object
{
private final java.net.InetSocketAddress[] addresses;
descriptor: [Ljava/net/InetSocketAddress;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private int i;
descriptor: I
flags: (0x0002) ACC_PRIVATE
void <init>(java.net.InetSocketAddress[]);
descriptor: ([Ljava/net/InetSocketAddress;)V
flags: (0x0000)
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
aload 1
putfield io.netty.resolver.dns.ShuffledDnsServerAddressStream.addresses:[Ljava/net/InetSocketAddress;
2: aload 0
invokevirtual io.netty.resolver.dns.ShuffledDnsServerAddressStream.shuffle:()V
3: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lio/netty/resolver/dns/ShuffledDnsServerAddressStream;
0 4 1 addresses [Ljava/net/InetSocketAddress;
MethodParameters:
Name Flags
addresses
private void <init>(java.net.InetSocketAddress[], int);
descriptor: ([Ljava/net/InetSocketAddress;I)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
aload 1
putfield io.netty.resolver.dns.ShuffledDnsServerAddressStream.addresses:[Ljava/net/InetSocketAddress;
2: aload 0
iload 2
putfield io.netty.resolver.dns.ShuffledDnsServerAddressStream.i:I
3: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lio/netty/resolver/dns/ShuffledDnsServerAddressStream;
0 4 1 addresses [Ljava/net/InetSocketAddress;
0 4 2 startIdx I
MethodParameters:
Name Flags
addresses
startIdx
private void shuffle();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=6, args_size=1
start local 0 0: aload 0
getfield io.netty.resolver.dns.ShuffledDnsServerAddressStream.addresses:[Ljava/net/InetSocketAddress;
astore 1
start local 1 1: invokestatic io.netty.util.internal.PlatformDependent.threadLocalRandom:()Ljava/util/Random;
astore 2
start local 2 2: aload 1
arraylength
iconst_1
isub
istore 3
start local 3 3: goto 9
4: StackMap locals: java.net.InetSocketAddress[] java.util.Random int
StackMap stack:
aload 1
iload 3
aaload
astore 4
start local 4 5: aload 2
iload 3
iconst_1
iadd
invokevirtual java.util.Random.nextInt:(I)I
istore 5
start local 5 6: aload 1
iload 3
aload 1
iload 5
aaload
aastore
7: aload 1
iload 5
aload 4
aastore
end local 5 end local 4 8: iinc 3 -1
StackMap locals:
StackMap stack:
9: iload 3
ifge 4
end local 3 10: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Lio/netty/resolver/dns/ShuffledDnsServerAddressStream;
1 11 1 addresses [Ljava/net/InetSocketAddress;
2 11 2 r Ljava/util/Random;
3 10 3 i I
5 8 4 tmp Ljava/net/InetSocketAddress;
6 8 5 j I
public java.net.InetSocketAddress next();
descriptor: ()Ljava/net/InetSocketAddress;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=3, args_size=1
start local 0 0: aload 0
getfield io.netty.resolver.dns.ShuffledDnsServerAddressStream.i:I
istore 1
start local 1 1: aload 0
getfield io.netty.resolver.dns.ShuffledDnsServerAddressStream.addresses:[Ljava/net/InetSocketAddress;
iload 1
aaload
astore 2
start local 2 2: iinc 1 1
iload 1
aload 0
getfield io.netty.resolver.dns.ShuffledDnsServerAddressStream.addresses:[Ljava/net/InetSocketAddress;
arraylength
if_icmpge 5
3: aload 0
iload 1
putfield io.netty.resolver.dns.ShuffledDnsServerAddressStream.i:I
4: goto 7
5: StackMap locals: int java.net.InetSocketAddress
StackMap stack:
aload 0
iconst_0
putfield io.netty.resolver.dns.ShuffledDnsServerAddressStream.i:I
6: aload 0
invokevirtual io.netty.resolver.dns.ShuffledDnsServerAddressStream.shuffle:()V
7: StackMap locals:
StackMap stack:
aload 2
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lio/netty/resolver/dns/ShuffledDnsServerAddressStream;
1 8 1 i I
2 8 2 next Ljava/net/InetSocketAddress;
public int size();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield io.netty.resolver.dns.ShuffledDnsServerAddressStream.addresses:[Ljava/net/InetSocketAddress;
arraylength
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/netty/resolver/dns/ShuffledDnsServerAddressStream;
public io.netty.resolver.dns.ShuffledDnsServerAddressStream duplicate();
descriptor: ()Lio/netty/resolver/dns/ShuffledDnsServerAddressStream;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=1, args_size=1
start local 0 0: new io.netty.resolver.dns.ShuffledDnsServerAddressStream
dup
aload 0
getfield io.netty.resolver.dns.ShuffledDnsServerAddressStream.addresses:[Ljava/net/InetSocketAddress;
aload 0
getfield io.netty.resolver.dns.ShuffledDnsServerAddressStream.i:I
invokespecial io.netty.resolver.dns.ShuffledDnsServerAddressStream.<init>:([Ljava/net/InetSocketAddress;I)V
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/netty/resolver/dns/ShuffledDnsServerAddressStream;
public java.lang.String toString();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: ldc "shuffled"
aload 0
getfield io.netty.resolver.dns.ShuffledDnsServerAddressStream.i:I
aload 0
getfield io.netty.resolver.dns.ShuffledDnsServerAddressStream.addresses:[Ljava/net/InetSocketAddress;
invokestatic io.netty.resolver.dns.SequentialDnsServerAddressStream.toString:(Ljava/lang/String;I[Ljava/net/InetSocketAddress;)Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/netty/resolver/dns/ShuffledDnsServerAddressStream;
public io.netty.resolver.dns.DnsServerAddressStream duplicate();
descriptor: ()Lio/netty/resolver/dns/DnsServerAddressStream;
flags: (0x1041) ACC_PUBLIC, ACC_BRIDGE, ACC_SYNTHETIC
Code:
stack=1, locals=1, args_size=1
0: aload 0
invokevirtual io.netty.resolver.dns.ShuffledDnsServerAddressStream.duplicate:()Lio/netty/resolver/dns/ShuffledDnsServerAddressStream;
areturn
LocalVariableTable:
Start End Slot Name Signature
}
SourceFile: "ShuffledDnsServerAddressStream.java"