public class org.glassfish.grizzly.WriteResult<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.WriteResult
super_class: java.lang.Object
{
private static final org.glassfish.grizzly.ThreadCache$CachedTypeIndex<org.glassfish.grizzly.WriteResult> 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/WriteResult;>;
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> dstAddressHolder;
descriptor: Lorg/glassfish/grizzly/utils/Holder;
flags: (0x0002) ACC_PRIVATE
Signature: Lorg/glassfish/grizzly/utils/Holder<TL;>;
private long writtenSize;
descriptor: J
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/WriteResult;
iconst_4
invokestatic org.glassfish.grizzly.ThreadCache.obtainIndex:(Ljava/lang/Class;I)Lorg/glassfish/grizzly/ThreadCache$CachedTypeIndex;
putstatic org.glassfish.grizzly.WriteResult.CACHE_IDX:Lorg/glassfish/grizzly/ThreadCache$CachedTypeIndex;
return
LocalVariableTable:
Start End Slot Name Signature
public static <K, L> org.glassfish.grizzly.WriteResult<K, L> create(org.glassfish.grizzly.Connection<L>);
descriptor: (Lorg/glassfish/grizzly/Connection;)Lorg/glassfish/grizzly/WriteResult;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=2, args_size=1
start local 0 0: invokestatic org.glassfish.grizzly.WriteResult.takeFromCache:()Lorg/glassfish/grizzly/WriteResult;
astore 1
start local 1 1: aload 1
ifnull 5
2: aload 1
aload 0
putfield org.glassfish.grizzly.WriteResult.connection:Lorg/glassfish/grizzly/Connection;
3: aload 1
iconst_0
putfield org.glassfish.grizzly.WriteResult.isRecycled:Z
4: aload 1
areturn
5: StackMap locals: org.glassfish.grizzly.WriteResult
StackMap stack:
new org.glassfish.grizzly.WriteResult
dup
aload 0
invokespecial org.glassfish.grizzly.WriteResult.<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 writeResult Lorg/glassfish/grizzly/WriteResult<TK;TL;>;
Signature: <K:Ljava/lang/Object;L:Ljava/lang/Object;>(Lorg/glassfish/grizzly/Connection<TL;>;)Lorg/glassfish/grizzly/WriteResult<TK;TL;>;
MethodParameters:
Name Flags
connection
public static <K, L> org.glassfish.grizzly.WriteResult<K, L> create(org.glassfish.grizzly.Connection<L>, K, L, long);
descriptor: (Lorg/glassfish/grizzly/Connection;Ljava/lang/Object;Ljava/lang/Object;J)Lorg/glassfish/grizzly/WriteResult;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=7, locals=6, args_size=4
start local 0 start local 1 start local 2 start local 3 0: invokestatic org.glassfish.grizzly.WriteResult.takeFromCache:()Lorg/glassfish/grizzly/WriteResult;
astore 5
start local 5 1: aload 5
ifnull 5
2: aload 5
aload 0
aload 1
aload 2
lload 3
invokevirtual org.glassfish.grizzly.WriteResult.set:(Lorg/glassfish/grizzly/Connection;Ljava/lang/Object;Ljava/lang/Object;J)V
3: aload 5
iconst_0
putfield org.glassfish.grizzly.WriteResult.isRecycled:Z
4: aload 5
areturn
5: StackMap locals: org.glassfish.grizzly.WriteResult
StackMap stack:
new org.glassfish.grizzly.WriteResult
dup
aload 0
aload 1
aload 2
lload 3
invokespecial org.glassfish.grizzly.WriteResult.<init>:(Lorg/glassfish/grizzly/Connection;Ljava/lang/Object;Ljava/lang/Object;J)V
areturn
end local 5 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 connection Lorg/glassfish/grizzly/Connection<TL;>;
0 6 1 message TK;
0 6 2 dstAddress TL;
0 6 3 writeSize J
1 6 5 writeResult Lorg/glassfish/grizzly/WriteResult<TK;TL;>;
Signature: <K:Ljava/lang/Object;L:Ljava/lang/Object;>(Lorg/glassfish/grizzly/Connection<TL;>;TK;TL;J)Lorg/glassfish/grizzly/WriteResult<TK;TL;>;
MethodParameters:
Name Flags
connection final
message final
dstAddress final
writeSize final
private static <K, L> org.glassfish.grizzly.WriteResult<K, L> takeFromCache();
descriptor: ()Lorg/glassfish/grizzly/WriteResult;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: getstatic org.glassfish.grizzly.WriteResult.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.WriteResult
areturn
LocalVariableTable:
Start End Slot Name Signature
Signature: <K:Ljava/lang/Object;L:Ljava/lang/Object;>()Lorg/glassfish/grizzly/WriteResult<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.WriteResult.isRecycled:Z
2: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/glassfish/grizzly/WriteResult<TK;TL;>;
private void <init>(org.glassfish.grizzly.Connection<L>);
descriptor: (Lorg/glassfish/grizzly/Connection;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=6, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
aconst_null
aconst_null
lconst_0
invokespecial org.glassfish.grizzly.WriteResult.<init>:(Lorg/glassfish/grizzly/Connection;Ljava/lang/Object;Ljava/lang/Object;J)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/glassfish/grizzly/WriteResult<TK;TL;>;
0 2 1 connection Lorg/glassfish/grizzly/Connection<TL;>;
Signature: (Lorg/glassfish/grizzly/Connection<TL;>;)V
MethodParameters:
Name Flags
connection final
private void <init>(org.glassfish.grizzly.Connection<L>, K, L, );
descriptor: (Lorg/glassfish/grizzly/Connection;Ljava/lang/Object;Ljava/lang/Object;J)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=6, locals=6, 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.WriteResult.isRecycled:Z
2: aload 0
aload 1
aload 2
aload 3
lload 4
invokevirtual org.glassfish.grizzly.WriteResult.set:(Lorg/glassfish/grizzly/Connection;Ljava/lang/Object;Ljava/lang/Object;J)V
3: return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/glassfish/grizzly/WriteResult<TK;TL;>;
0 4 1 connection Lorg/glassfish/grizzly/Connection<TL;>;
0 4 2 message TK;
0 4 3 dstAddress TL;
0 4 4 writeSize J
Signature: (Lorg/glassfish/grizzly/Connection<TL;>;TK;TL;J)V
MethodParameters:
Name Flags
connection
message
dstAddress
writeSize
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.WriteResult.checkRecycled:()V
1: aload 0
getfield org.glassfish.grizzly.WriteResult.connection:Lorg/glassfish/grizzly/Connection;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/glassfish/grizzly/WriteResult<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.WriteResult.checkRecycled:()V
1: aload 0
getfield org.glassfish.grizzly.WriteResult.message:Ljava/lang/Object;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/glassfish/grizzly/WriteResult<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.WriteResult.checkRecycled:()V
1: aload 0
aload 1
putfield org.glassfish.grizzly.WriteResult.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/WriteResult<TK;TL;>;
0 3 1 message TK;
Signature: (TK;)V
MethodParameters:
Name Flags
message
public final L getDstAddress();
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.WriteResult.checkRecycled:()V
1: aload 0
getfield org.glassfish.grizzly.WriteResult.dstAddressHolder:Lorg/glassfish/grizzly/utils/Holder;
ifnull 2
aload 0
getfield org.glassfish.grizzly.WriteResult.dstAddressHolder: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/WriteResult<TK;TL;>;
Signature: ()TL;
public final org.glassfish.grizzly.utils.Holder<L> getDstAddressHolder();
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.WriteResult.checkRecycled:()V
1: aload 0
getfield org.glassfish.grizzly.WriteResult.dstAddressHolder:Lorg/glassfish/grizzly/utils/Holder;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/glassfish/grizzly/WriteResult<TK;TL;>;
Signature: ()Lorg/glassfish/grizzly/utils/Holder<TL;>;
public final void setDstAddress();
descriptor: (Ljava/lang/Object;)V
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual org.glassfish.grizzly.WriteResult.checkRecycled:()V
1: aload 0
aload 0
aload 1
invokevirtual org.glassfish.grizzly.WriteResult.createAddrHolder:(Ljava/lang/Object;)Lorg/glassfish/grizzly/utils/Holder;
putfield org.glassfish.grizzly.WriteResult.dstAddressHolder: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/WriteResult<TK;TL;>;
0 3 1 dstAddress TL;
Signature: (TL;)V
MethodParameters:
Name Flags
dstAddress final
public final void setDstAddressHolder(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.WriteResult.checkRecycled:()V
1: aload 0
aload 1
putfield org.glassfish.grizzly.WriteResult.dstAddressHolder: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/WriteResult<TK;TL;>;
0 3 1 dstAddressHolder Lorg/glassfish/grizzly/utils/Holder<TL;>;
Signature: (Lorg/glassfish/grizzly/utils/Holder<TL;>;)V
MethodParameters:
Name Flags
dstAddressHolder final
public final long getWrittenSize();
descriptor: ()J
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual org.glassfish.grizzly.WriteResult.checkRecycled:()V
1: aload 0
getfield org.glassfish.grizzly.WriteResult.writtenSize:J
lreturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/glassfish/grizzly/WriteResult<TK;TL;>;
public final void setWrittenSize(long);
descriptor: (J)V
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual org.glassfish.grizzly.WriteResult.checkRecycled:()V
1: aload 0
lload 1
putfield org.glassfish.grizzly.WriteResult.writtenSize:J
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/glassfish/grizzly/WriteResult<TK;TL;>;
0 3 1 writeSize J
MethodParameters:
Name Flags
writeSize
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.WriteResult.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/WriteResult<TK;TL;>;
protected void set(org.glassfish.grizzly.Connection<L>, K, L, );
descriptor: (Lorg/glassfish/grizzly/Connection;Ljava/lang/Object;Ljava/lang/Object;J)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=3, locals=6, 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.WriteResult.connection:Lorg/glassfish/grizzly/Connection;
1: aload 0
aload 2
putfield org.glassfish.grizzly.WriteResult.message:Ljava/lang/Object;
2: aload 0
aload 0
aload 3
invokevirtual org.glassfish.grizzly.WriteResult.createAddrHolder:(Ljava/lang/Object;)Lorg/glassfish/grizzly/utils/Holder;
putfield org.glassfish.grizzly.WriteResult.dstAddressHolder:Lorg/glassfish/grizzly/utils/Holder;
3: aload 0
lload 4
putfield org.glassfish.grizzly.WriteResult.writtenSize:J
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/WriteResult<TK;TL;>;
0 5 1 connection Lorg/glassfish/grizzly/Connection<TL;>;
0 5 2 message TK;
0 5 3 dstAddress TL;
0 5 4 writtenSize J
Signature: (Lorg/glassfish/grizzly/Connection<TL;>;TK;TL;J)V
MethodParameters:
Name Flags
connection final
message final
dstAddress final
writtenSize final
protected org.glassfish.grizzly.utils.Holder<L> createAddrHolder(L);
descriptor: (Ljava/lang/Object;)Lorg/glassfish/grizzly/utils/Holder;
flags: (0x0004) ACC_PROTECTED
Code:
stack=1, locals=2, args_size=2
start local 0 start local 1 0: aload 1
invokestatic org.glassfish.grizzly.utils.Holder.staticHolder:(Ljava/lang/Object;)Lorg/glassfish/grizzly/utils/Holder;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/glassfish/grizzly/WriteResult<TK;TL;>;
0 1 1 dstAddress TL;
Signature: (TL;)Lorg/glassfish/grizzly/utils/Holder<TL;>;
MethodParameters:
Name Flags
dstAddress final
protected void reset();
descriptor: ()V
flags: (0x0004) ACC_PROTECTED
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
aconst_null
putfield org.glassfish.grizzly.WriteResult.connection:Lorg/glassfish/grizzly/Connection;
1: aload 0
aconst_null
putfield org.glassfish.grizzly.WriteResult.message:Ljava/lang/Object;
2: aload 0
aconst_null
putfield org.glassfish.grizzly.WriteResult.dstAddressHolder:Lorg/glassfish/grizzly/utils/Holder;
3: aload 0
lconst_0
putfield org.glassfish.grizzly.WriteResult.writtenSize:J
4: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/glassfish/grizzly/WriteResult<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.WriteResult.reset:()V
1: aload 0
iconst_1
putfield org.glassfish.grizzly.WriteResult.isRecycled:Z
2: getstatic org.glassfish.grizzly.WriteResult.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/WriteResult<TK;TL;>;
public java.lang.Object copy();
descriptor: ()Ljava/lang/Object;
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual org.glassfish.grizzly.WriteResult.getConnection:()Lorg/glassfish/grizzly/Connection;
aload 0
invokevirtual org.glassfish.grizzly.WriteResult.getMessage:()Ljava/lang/Object;
aload 0
invokevirtual org.glassfish.grizzly.WriteResult.getDstAddress:()Ljava/lang/Object;
aload 0
invokevirtual org.glassfish.grizzly.WriteResult.getWrittenSize:()J
invokestatic org.glassfish.grizzly.WriteResult.create:(Lorg/glassfish/grizzly/Connection;Ljava/lang/Object;Ljava/lang/Object;J)Lorg/glassfish/grizzly/WriteResult;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/glassfish/grizzly/WriteResult<TK;TL;>;
}
Signature: <K:Ljava/lang/Object;L:Ljava/lang/Object;>Ljava/lang/Object;Lorg/glassfish/grizzly/Result;Lorg/glassfish/grizzly/Cacheable;
SourceFile: "WriteResult.java"
InnerClasses:
public final CachedTypeIndex = org.glassfish.grizzly.ThreadCache$CachedTypeIndex of org.glassfish.grizzly.ThreadCache