public class org.glassfish.grizzly.ReadResult<K, L> implements org.glassfish.grizzly.Result, org.glassfish.grizzly.Cacheable
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.glassfish.grizzly.ReadResult
super_class: java.lang.Object
{
private static final org.glassfish.grizzly.ThreadCache$CachedTypeIndex<org.glassfish.grizzly.ReadResult> CACHE_IDX;
descriptor: Lorg/glassfish/grizzly/ThreadCache$CachedTypeIndex;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
Signature: Lorg/glassfish/grizzly/ThreadCache$CachedTypeIndex<Lorg/glassfish/grizzly/ReadResult;>;
private boolean isRecycled;
descriptor: Z
flags: (0x0002) ACC_PRIVATE
private org.glassfish.grizzly.Connection<L> connection;
descriptor: Lorg/glassfish/grizzly/Connection;
flags: (0x0002) ACC_PRIVATE
Signature: Lorg/glassfish/grizzly/Connection<TL;>;
private K message;
descriptor: Ljava/lang/Object;
flags: (0x0002) ACC_PRIVATE
Signature: TK;
private org.glassfish.grizzly.utils.Holder<L> srcAddressHolder;
descriptor: Lorg/glassfish/grizzly/utils/Holder;
flags: (0x0002) ACC_PRIVATE
Signature: Lorg/glassfish/grizzly/utils/Holder<TL;>;
private int readSize;
descriptor: I
flags: (0x0002) ACC_PRIVATE
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=0, args_size=0
0: ldc Lorg/glassfish/grizzly/ReadResult;
iconst_4
invokestatic org.glassfish.grizzly.ThreadCache.obtainIndex:(Ljava/lang/Class;I)Lorg/glassfish/grizzly/ThreadCache$CachedTypeIndex;
putstatic org.glassfish.grizzly.ReadResult.CACHE_IDX:Lorg/glassfish/grizzly/ThreadCache$CachedTypeIndex;
return
LocalVariableTable:
Start End Slot Name Signature
public static <K, L> org.glassfish.grizzly.ReadResult<K, L> create(org.glassfish.grizzly.Connection<L>);
descriptor: (Lorg/glassfish/grizzly/Connection;)Lorg/glassfish/grizzly/ReadResult;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=2, args_size=1
start local 0 0: invokestatic org.glassfish.grizzly.ReadResult.takeFromCache:()Lorg/glassfish/grizzly/ReadResult;
astore 1
start local 1 1: aload 1
ifnull 5
2: aload 1
aload 0
putfield org.glassfish.grizzly.ReadResult.connection:Lorg/glassfish/grizzly/Connection;
3: aload 1
iconst_0
putfield org.glassfish.grizzly.ReadResult.isRecycled:Z
4: aload 1
areturn
5: StackMap locals: org.glassfish.grizzly.ReadResult
StackMap stack:
new org.glassfish.grizzly.ReadResult
dup
aload 0
invokespecial org.glassfish.grizzly.ReadResult.<init>:(Lorg/glassfish/grizzly/Connection;)V
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 connection Lorg/glassfish/grizzly/Connection<TL;>;
1 6 1 readResult Lorg/glassfish/grizzly/ReadResult<TK;TL;>;
Signature: <K:Ljava/lang/Object;L:Ljava/lang/Object;>(Lorg/glassfish/grizzly/Connection<TL;>;)Lorg/glassfish/grizzly/ReadResult<TK;TL;>;
MethodParameters:
Name Flags
connection
public static <K, L> org.glassfish.grizzly.ReadResult<K, L> create(org.glassfish.grizzly.Connection<L>, K, L, int);
descriptor: (Lorg/glassfish/grizzly/Connection;Ljava/lang/Object;Ljava/lang/Object;I)Lorg/glassfish/grizzly/ReadResult;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=6, locals=5, args_size=4
start local 0 start local 1 start local 2 start local 3 0: invokestatic org.glassfish.grizzly.ReadResult.takeFromCache:()Lorg/glassfish/grizzly/ReadResult;
astore 4
start local 4 1: aload 4
ifnull 8
2: aload 4
aload 0
putfield org.glassfish.grizzly.ReadResult.connection:Lorg/glassfish/grizzly/Connection;
3: aload 4
aload 1
putfield org.glassfish.grizzly.ReadResult.message:Ljava/lang/Object;
4: aload 4
aload 2
invokestatic org.glassfish.grizzly.utils.Holder.staticHolder:(Ljava/lang/Object;)Lorg/glassfish/grizzly/utils/Holder;
putfield org.glassfish.grizzly.ReadResult.srcAddressHolder:Lorg/glassfish/grizzly/utils/Holder;
5: aload 4
iload 3
putfield org.glassfish.grizzly.ReadResult.readSize:I
6: aload 4
iconst_0
putfield org.glassfish.grizzly.ReadResult.isRecycled:Z
7: aload 4
areturn
8: StackMap locals: org.glassfish.grizzly.ReadResult
StackMap stack:
new org.glassfish.grizzly.ReadResult
dup
aload 0
aload 1
aload 2
iload 3
invokespecial org.glassfish.grizzly.ReadResult.<init>:(Lorg/glassfish/grizzly/Connection;Ljava/lang/Object;Ljava/lang/Object;I)V
areturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 connection Lorg/glassfish/grizzly/Connection<TL;>;
0 9 1 message TK;
0 9 2 srcAddress TL;
0 9 3 readSize I
1 9 4 readResult Lorg/glassfish/grizzly/ReadResult<TK;TL;>;
Signature: <K:Ljava/lang/Object;L:Ljava/lang/Object;>(Lorg/glassfish/grizzly/Connection<TL;>;TK;TL;I)Lorg/glassfish/grizzly/ReadResult<TK;TL;>;
MethodParameters:
Name Flags
connection
message
srcAddress
readSize
private static <K, L> org.glassfish.grizzly.ReadResult<K, L> takeFromCache();
descriptor: ()Lorg/glassfish/grizzly/ReadResult;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: getstatic org.glassfish.grizzly.ReadResult.CACHE_IDX:Lorg/glassfish/grizzly/ThreadCache$CachedTypeIndex;
invokestatic org.glassfish.grizzly.ThreadCache.takeFromCache:(Lorg/glassfish/grizzly/ThreadCache$CachedTypeIndex;)Ljava/lang/Object;
checkcast org.glassfish.grizzly.ReadResult
areturn
LocalVariableTable:
Start End Slot Name Signature
Signature: <K:Ljava/lang/Object;L:Ljava/lang/Object;>()Lorg/glassfish/grizzly/ReadResult<TK;TL;>;
protected void <init>();
descriptor: ()V
flags: (0x0004) ACC_PROTECTED
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
iconst_0
putfield org.glassfish.grizzly.ReadResult.isRecycled:Z
2: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/glassfish/grizzly/ReadResult<TK;TL;>;
protected void <init>(org.glassfish.grizzly.Connection<L>);
descriptor: (Lorg/glassfish/grizzly/Connection;)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=5, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
aconst_null
aconst_null
iconst_0
invokespecial org.glassfish.grizzly.ReadResult.<init>:(Lorg/glassfish/grizzly/Connection;Ljava/lang/Object;Ljava/lang/Object;I)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/glassfish/grizzly/ReadResult<TK;TL;>;
0 2 1 connection Lorg/glassfish/grizzly/Connection<TL;>;
Signature: (Lorg/glassfish/grizzly/Connection<TL;>;)V
MethodParameters:
Name Flags
connection final
protected void <init>(org.glassfish.grizzly.Connection<L>, K, L, );
descriptor: (Lorg/glassfish/grizzly/Connection;Ljava/lang/Object;Ljava/lang/Object;I)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=2, locals=5, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 4 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
iconst_0
putfield org.glassfish.grizzly.ReadResult.isRecycled:Z
2: aload 0
aload 1
putfield org.glassfish.grizzly.ReadResult.connection:Lorg/glassfish/grizzly/Connection;
3: aload 0
aload 2
putfield org.glassfish.grizzly.ReadResult.message:Ljava/lang/Object;
4: aload 0
aload 3
invokestatic org.glassfish.grizzly.utils.Holder.staticHolder:(Ljava/lang/Object;)Lorg/glassfish/grizzly/utils/Holder;
putfield org.glassfish.grizzly.ReadResult.srcAddressHolder:Lorg/glassfish/grizzly/utils/Holder;
5: aload 0
iload 4
putfield org.glassfish.grizzly.ReadResult.readSize:I
6: return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lorg/glassfish/grizzly/ReadResult<TK;TL;>;
0 7 1 connection Lorg/glassfish/grizzly/Connection<TL;>;
0 7 2 message TK;
0 7 3 srcAddress TL;
0 7 4 readSize I
Signature: (Lorg/glassfish/grizzly/Connection<TL;>;TK;TL;I)V
MethodParameters:
Name Flags
connection final
message final
srcAddress final
readSize final
public final org.glassfish.grizzly.Connection<L> getConnection();
descriptor: ()Lorg/glassfish/grizzly/Connection;
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual org.glassfish.grizzly.ReadResult.checkRecycled:()V
1: aload 0
getfield org.glassfish.grizzly.ReadResult.connection:Lorg/glassfish/grizzly/Connection;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/glassfish/grizzly/ReadResult<TK;TL;>;
Signature: ()Lorg/glassfish/grizzly/Connection<TL;>;
public final K getMessage();
descriptor: ()Ljava/lang/Object;
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual org.glassfish.grizzly.ReadResult.checkRecycled:()V
1: aload 0
getfield org.glassfish.grizzly.ReadResult.message:Ljava/lang/Object;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/glassfish/grizzly/ReadResult<TK;TL;>;
Signature: ()TK;
public final void setMessage();
descriptor: (Ljava/lang/Object;)V
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual org.glassfish.grizzly.ReadResult.checkRecycled:()V
1: aload 0
aload 1
putfield org.glassfish.grizzly.ReadResult.message:Ljava/lang/Object;
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/glassfish/grizzly/ReadResult<TK;TL;>;
0 3 1 message TK;
Signature: (TK;)V
MethodParameters:
Name Flags
message
public final L getSrcAddress();
descriptor: ()Ljava/lang/Object;
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual org.glassfish.grizzly.ReadResult.checkRecycled:()V
1: aload 0
getfield org.glassfish.grizzly.ReadResult.srcAddressHolder:Lorg/glassfish/grizzly/utils/Holder;
ifnull 2
aload 0
getfield org.glassfish.grizzly.ReadResult.srcAddressHolder:Lorg/glassfish/grizzly/utils/Holder;
invokevirtual org.glassfish.grizzly.utils.Holder.get:()Ljava/lang/Object;
goto 3
StackMap locals:
StackMap stack:
2: aconst_null
StackMap locals:
StackMap stack: java.lang.Object
3: areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/glassfish/grizzly/ReadResult<TK;TL;>;
Signature: ()TL;
public final org.glassfish.grizzly.utils.Holder<L> getSrcAddressHolder();
descriptor: ()Lorg/glassfish/grizzly/utils/Holder;
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual org.glassfish.grizzly.ReadResult.checkRecycled:()V
1: aload 0
getfield org.glassfish.grizzly.ReadResult.srcAddressHolder:Lorg/glassfish/grizzly/utils/Holder;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/glassfish/grizzly/ReadResult<TK;TL;>;
Signature: ()Lorg/glassfish/grizzly/utils/Holder<TL;>;
public final void setSrcAddress();
descriptor: (Ljava/lang/Object;)V
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual org.glassfish.grizzly.ReadResult.checkRecycled:()V
1: aload 0
aload 1
invokestatic org.glassfish.grizzly.utils.Holder.staticHolder:(Ljava/lang/Object;)Lorg/glassfish/grizzly/utils/Holder;
putfield org.glassfish.grizzly.ReadResult.srcAddressHolder:Lorg/glassfish/grizzly/utils/Holder;
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/glassfish/grizzly/ReadResult<TK;TL;>;
0 3 1 srcAddress TL;
Signature: (TL;)V
MethodParameters:
Name Flags
srcAddress
public final void setSrcAddressHolder(org.glassfish.grizzly.utils.Holder<L>);
descriptor: (Lorg/glassfish/grizzly/utils/Holder;)V
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual org.glassfish.grizzly.ReadResult.checkRecycled:()V
1: aload 0
aload 1
putfield org.glassfish.grizzly.ReadResult.srcAddressHolder:Lorg/glassfish/grizzly/utils/Holder;
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/glassfish/grizzly/ReadResult<TK;TL;>;
0 3 1 srcAddressHolder Lorg/glassfish/grizzly/utils/Holder<TL;>;
Signature: (Lorg/glassfish/grizzly/utils/Holder<TL;>;)V
MethodParameters:
Name Flags
srcAddressHolder
public final int getReadSize();
descriptor: ()I
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual org.glassfish.grizzly.ReadResult.checkRecycled:()V
1: aload 0
getfield org.glassfish.grizzly.ReadResult.readSize:I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/glassfish/grizzly/ReadResult<TK;TL;>;
public final void setReadSize(int);
descriptor: (I)V
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual org.glassfish.grizzly.ReadResult.checkRecycled:()V
1: aload 0
iload 1
putfield org.glassfish.grizzly.ReadResult.readSize:I
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/glassfish/grizzly/ReadResult<TK;TL;>;
0 3 1 readSize I
MethodParameters:
Name Flags
readSize
protected void set(org.glassfish.grizzly.Connection<L>, K, L, );
descriptor: (Lorg/glassfish/grizzly/Connection;Ljava/lang/Object;Ljava/lang/Object;I)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=2, locals=5, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 4 0: aload 0
aload 1
putfield org.glassfish.grizzly.ReadResult.connection:Lorg/glassfish/grizzly/Connection;
1: aload 0
aload 2
putfield org.glassfish.grizzly.ReadResult.message:Ljava/lang/Object;
2: aload 0
aload 3
invokestatic org.glassfish.grizzly.utils.Holder.staticHolder:(Ljava/lang/Object;)Lorg/glassfish/grizzly/utils/Holder;
putfield org.glassfish.grizzly.ReadResult.srcAddressHolder:Lorg/glassfish/grizzly/utils/Holder;
3: aload 0
iload 4
putfield org.glassfish.grizzly.ReadResult.readSize:I
4: return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/glassfish/grizzly/ReadResult<TK;TL;>;
0 5 1 connection Lorg/glassfish/grizzly/Connection<TL;>;
0 5 2 message TK;
0 5 3 srcAddress TL;
0 5 4 readSize I
Signature: (Lorg/glassfish/grizzly/Connection<TL;>;TK;TL;I)V
MethodParameters:
Name Flags
connection final
message final
srcAddress final
readSize final
protected void reset();
descriptor: ()V
flags: (0x0004) ACC_PROTECTED
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
aconst_null
putfield org.glassfish.grizzly.ReadResult.connection:Lorg/glassfish/grizzly/Connection;
1: aload 0
aconst_null
putfield org.glassfish.grizzly.ReadResult.message:Ljava/lang/Object;
2: aload 0
aconst_null
putfield org.glassfish.grizzly.ReadResult.srcAddressHolder:Lorg/glassfish/grizzly/utils/Holder;
3: aload 0
iconst_0
putfield org.glassfish.grizzly.ReadResult.readSize:I
4: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/glassfish/grizzly/ReadResult<TK;TL;>;
private void checkRecycled();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=1, args_size=1
start local 0 0: invokestatic org.glassfish.grizzly.Grizzly.isTrackingThreadCache:()Z
ifeq 2
aload 0
getfield org.glassfish.grizzly.ReadResult.isRecycled:Z
ifeq 2
1: new java.lang.IllegalStateException
dup
ldc "ReadResult has been recycled!"
invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/glassfish/grizzly/ReadResult<TK;TL;>;
public void recycle();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual org.glassfish.grizzly.ReadResult.reset:()V
1: aload 0
iconst_1
putfield org.glassfish.grizzly.ReadResult.isRecycled:Z
2: getstatic org.glassfish.grizzly.ReadResult.CACHE_IDX:Lorg/glassfish/grizzly/ThreadCache$CachedTypeIndex;
aload 0
invokestatic org.glassfish.grizzly.ThreadCache.putToCache:(Lorg/glassfish/grizzly/ThreadCache$CachedTypeIndex;Ljava/lang/Object;)Z
pop
3: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/glassfish/grizzly/ReadResult<TK;TL;>;
public java.lang.Object copy();
descriptor: ()Ljava/lang/Object;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual org.glassfish.grizzly.ReadResult.getConnection:()Lorg/glassfish/grizzly/Connection;
aload 0
invokevirtual org.glassfish.grizzly.ReadResult.getMessage:()Ljava/lang/Object;
aload 0
invokevirtual org.glassfish.grizzly.ReadResult.getSrcAddress:()Ljava/lang/Object;
aload 0
invokevirtual org.glassfish.grizzly.ReadResult.getReadSize:()I
invokestatic org.glassfish.grizzly.ReadResult.create:(Lorg/glassfish/grizzly/Connection;Ljava/lang/Object;Ljava/lang/Object;I)Lorg/glassfish/grizzly/ReadResult;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/glassfish/grizzly/ReadResult<TK;TL;>;
}
Signature: <K:Ljava/lang/Object;L:Ljava/lang/Object;>Ljava/lang/Object;Lorg/glassfish/grizzly/Result;Lorg/glassfish/grizzly/Cacheable;
SourceFile: "ReadResult.java"
InnerClasses:
public final CachedTypeIndex = org.glassfish.grizzly.ThreadCache$CachedTypeIndex of org.glassfish.grizzly.ThreadCache