public final class org.glassfish.grizzly.asyncqueue.TaskQueue<E extends org.glassfish.grizzly.asyncqueue.AsyncQueueRecord>
minor version: 0
major version: 59
flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
this_class: org.glassfish.grizzly.asyncqueue.TaskQueue
super_class: java.lang.Object
{
private volatile boolean isClosed;
descriptor: Z
flags: (0x0042) ACC_PRIVATE, ACC_VOLATILE
private final java.util.Queue<E> queue;
descriptor: Ljava/util/Queue;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/Queue<TE;>;
private static final java.util.concurrent.atomic.AtomicReferenceFieldUpdater<org.glassfish.grizzly.asyncqueue.TaskQueue, org.glassfish.grizzly.asyncqueue.AsyncQueueRecord> currentElementUpdater;
descriptor: Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
Signature: Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater<Lorg/glassfish/grizzly/asyncqueue/TaskQueue;Lorg/glassfish/grizzly/asyncqueue/AsyncQueueRecord;>;
private volatile E currentElement;
descriptor: Lorg/glassfish/grizzly/asyncqueue/AsyncQueueRecord;
flags: (0x0042) ACC_PRIVATE, ACC_VOLATILE
Signature: TE;
private static final java.util.concurrent.atomic.AtomicIntegerFieldUpdater<org.glassfish.grizzly.asyncqueue.TaskQueue> spaceInBytesUpdater;
descriptor: Ljava/util/concurrent/atomic/AtomicIntegerFieldUpdater;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
Signature: Ljava/util/concurrent/atomic/AtomicIntegerFieldUpdater<Lorg/glassfish/grizzly/asyncqueue/TaskQueue;>;
private volatile int spaceInBytes;
descriptor: I
flags: (0x0042) ACC_PRIVATE, ACC_VOLATILE
private final org.glassfish.grizzly.asyncqueue.TaskQueue$MutableMaxQueueSize maxQueueSizeHolder;
descriptor: Lorg/glassfish/grizzly/asyncqueue/TaskQueue$MutableMaxQueueSize;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private static final java.util.concurrent.atomic.AtomicIntegerFieldUpdater<org.glassfish.grizzly.asyncqueue.TaskQueue> writeHandlersCounterUpdater;
descriptor: Ljava/util/concurrent/atomic/AtomicIntegerFieldUpdater;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
Signature: Ljava/util/concurrent/atomic/AtomicIntegerFieldUpdater<Lorg/glassfish/grizzly/asyncqueue/TaskQueue;>;
private volatile int writeHandlersCounter;
descriptor: I
flags: (0x0042) ACC_PRIVATE, ACC_VOLATILE
protected final java.util.Queue<org.glassfish.grizzly.WriteHandler> writeHandlersQueue;
descriptor: Ljava/util/Queue;
flags: (0x0014) ACC_PROTECTED, ACC_FINAL
Signature: Ljava/util/Queue<Lorg/glassfish/grizzly/WriteHandler;>;
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=3, locals=0, args_size=0
0: ldc Lorg/glassfish/grizzly/asyncqueue/TaskQueue;
ldc Lorg/glassfish/grizzly/asyncqueue/AsyncQueueRecord;
ldc "currentElement"
invokestatic java.util.concurrent.atomic.AtomicReferenceFieldUpdater.newUpdater:(Ljava/lang/Class;Ljava/lang/Class;Ljava/lang/String;)Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;
1: putstatic org.glassfish.grizzly.asyncqueue.TaskQueue.currentElementUpdater:Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;
2: ldc Lorg/glassfish/grizzly/asyncqueue/TaskQueue;
ldc "spaceInBytes"
invokestatic java.util.concurrent.atomic.AtomicIntegerFieldUpdater.newUpdater:(Ljava/lang/Class;Ljava/lang/String;)Ljava/util/concurrent/atomic/AtomicIntegerFieldUpdater;
3: putstatic org.glassfish.grizzly.asyncqueue.TaskQueue.spaceInBytesUpdater:Ljava/util/concurrent/atomic/AtomicIntegerFieldUpdater;
4: ldc Lorg/glassfish/grizzly/asyncqueue/TaskQueue;
ldc "writeHandlersCounter"
invokestatic java.util.concurrent.atomic.AtomicIntegerFieldUpdater.newUpdater:(Ljava/lang/Class;Ljava/lang/String;)Ljava/util/concurrent/atomic/AtomicIntegerFieldUpdater;
5: putstatic org.glassfish.grizzly.asyncqueue.TaskQueue.writeHandlersCounterUpdater:Ljava/util/concurrent/atomic/AtomicIntegerFieldUpdater;
6: return
LocalVariableTable:
Start End Slot Name Signature
protected void <init>(org.glassfish.grizzly.asyncqueue.TaskQueue$MutableMaxQueueSize);
descriptor: (Lorg/glassfish/grizzly/asyncqueue/TaskQueue$MutableMaxQueueSize;)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
new java.util.concurrent.ConcurrentLinkedQueue
dup
invokespecial java.util.concurrent.ConcurrentLinkedQueue.<init>:()V
putfield org.glassfish.grizzly.asyncqueue.TaskQueue.writeHandlersQueue:Ljava/util/Queue;
2: aload 0
aload 1
putfield org.glassfish.grizzly.asyncqueue.TaskQueue.maxQueueSizeHolder:Lorg/glassfish/grizzly/asyncqueue/TaskQueue$MutableMaxQueueSize;
3: aload 0
new java.util.concurrent.ConcurrentLinkedQueue
dup
invokespecial java.util.concurrent.ConcurrentLinkedQueue.<init>:()V
putfield org.glassfish.grizzly.asyncqueue.TaskQueue.queue:Ljava/util/Queue;
4: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/glassfish/grizzly/asyncqueue/TaskQueue<TE;>;
0 5 1 maxQueueSizeHolder Lorg/glassfish/grizzly/asyncqueue/TaskQueue$MutableMaxQueueSize;
MethodParameters:
Name Flags
maxQueueSizeHolder final
public static <E extends org.glassfish.grizzly.asyncqueue.AsyncQueueRecord> org.glassfish.grizzly.asyncqueue.TaskQueue<E> createTaskQueue(org.glassfish.grizzly.asyncqueue.TaskQueue$MutableMaxQueueSize);
descriptor: (Lorg/glassfish/grizzly/asyncqueue/TaskQueue$MutableMaxQueueSize;)Lorg/glassfish/grizzly/asyncqueue/TaskQueue;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: new org.glassfish.grizzly.asyncqueue.TaskQueue
dup
aload 0
invokespecial org.glassfish.grizzly.asyncqueue.TaskQueue.<init>:(Lorg/glassfish/grizzly/asyncqueue/TaskQueue$MutableMaxQueueSize;)V
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 maxQueueSizeHolder Lorg/glassfish/grizzly/asyncqueue/TaskQueue$MutableMaxQueueSize;
Signature: <E:Lorg/glassfish/grizzly/asyncqueue/AsyncQueueRecord;>(Lorg/glassfish/grizzly/asyncqueue/TaskQueue$MutableMaxQueueSize;)Lorg/glassfish/grizzly/asyncqueue/TaskQueue<TE;>;
MethodParameters:
Name Flags
maxQueueSizeHolder final
public int size();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.glassfish.grizzly.asyncqueue.TaskQueue.spaceInBytes:I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/glassfish/grizzly/asyncqueue/TaskQueue<TE;>;
public E poll();
descriptor: ()Lorg/glassfish/grizzly/asyncqueue/AsyncQueueRecord;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=1
start local 0 0: getstatic org.glassfish.grizzly.asyncqueue.TaskQueue.currentElementUpdater:Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;
aload 0
aconst_null
invokevirtual java.util.concurrent.atomic.AtomicReferenceFieldUpdater.getAndSet:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
checkcast org.glassfish.grizzly.asyncqueue.AsyncQueueRecord
astore 1
start local 1 1: aload 1
ifnonnull 2
aload 0
getfield org.glassfish.grizzly.asyncqueue.TaskQueue.queue:Ljava/util/Queue;
invokeinterface java.util.Queue.poll:()Ljava/lang/Object;
checkcast org.glassfish.grizzly.asyncqueue.AsyncQueueRecord
goto 3
StackMap locals: org.glassfish.grizzly.asyncqueue.AsyncQueueRecord
StackMap stack:
2: aload 1
StackMap locals:
StackMap stack: org.glassfish.grizzly.asyncqueue.AsyncQueueRecord
3: areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/glassfish/grizzly/asyncqueue/TaskQueue<TE;>;
1 4 1 current TE;
Signature: ()TE;
public E peek();
descriptor: ()Lorg/glassfish/grizzly/asyncqueue/AsyncQueueRecord;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=2, args_size=1
start local 0 0: aload 0
getfield org.glassfish.grizzly.asyncqueue.TaskQueue.currentElement:Lorg/glassfish/grizzly/asyncqueue/AsyncQueueRecord;
astore 1
start local 1 1: aload 1
ifnonnull 5
2: aload 0
getfield org.glassfish.grizzly.asyncqueue.TaskQueue.queue:Ljava/util/Queue;
invokeinterface java.util.Queue.poll:()Ljava/lang/Object;
checkcast org.glassfish.grizzly.asyncqueue.AsyncQueueRecord
astore 1
3: aload 1
ifnull 5
4: aload 0
aload 1
putfield org.glassfish.grizzly.asyncqueue.TaskQueue.currentElement:Lorg/glassfish/grizzly/asyncqueue/AsyncQueueRecord;
5: StackMap locals: org.glassfish.grizzly.asyncqueue.AsyncQueueRecord
StackMap stack:
aload 1
ifnull 8
aload 0
getfield org.glassfish.grizzly.asyncqueue.TaskQueue.isClosed:Z
ifeq 8
getstatic org.glassfish.grizzly.asyncqueue.TaskQueue.currentElementUpdater:Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;
aload 0
aload 1
aconst_null
invokevirtual java.util.concurrent.atomic.AtomicReferenceFieldUpdater.compareAndSet:(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Z
ifeq 8
6: aload 1
new java.io.IOException
dup
ldc "Connection closed"
invokespecial java.io.IOException.<init>:(Ljava/lang/String;)V
invokevirtual org.glassfish.grizzly.asyncqueue.AsyncQueueRecord.notifyFailure:(Ljava/lang/Throwable;)V
7: aconst_null
areturn
8: StackMap locals:
StackMap stack:
aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lorg/glassfish/grizzly/asyncqueue/TaskQueue<TE;>;
1 9 1 current TE;
Signature: ()TE;
public int reserveSpace(int);
descriptor: (I)I
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: getstatic org.glassfish.grizzly.asyncqueue.TaskQueue.spaceInBytesUpdater:Ljava/util/concurrent/atomic/AtomicIntegerFieldUpdater;
aload 0
iload 1
invokevirtual java.util.concurrent.atomic.AtomicIntegerFieldUpdater.addAndGet:(Ljava/lang/Object;I)I
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/glassfish/grizzly/asyncqueue/TaskQueue<TE;>;
0 1 1 amount I
MethodParameters:
Name Flags
amount final
public int releaseSpace(int);
descriptor: (I)I
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: getstatic org.glassfish.grizzly.asyncqueue.TaskQueue.spaceInBytesUpdater:Ljava/util/concurrent/atomic/AtomicIntegerFieldUpdater;
aload 0
iload 1
ineg
invokevirtual java.util.concurrent.atomic.AtomicIntegerFieldUpdater.addAndGet:(Ljava/lang/Object;I)I
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/glassfish/grizzly/asyncqueue/TaskQueue<TE;>;
0 1 1 amount I
MethodParameters:
Name Flags
amount final
public int releaseSpaceAndNotify(int);
descriptor: (I)I
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: aload 0
iload 1
invokevirtual org.glassfish.grizzly.asyncqueue.TaskQueue.releaseSpace:(I)I
istore 2
start local 2 1: aload 0
invokevirtual org.glassfish.grizzly.asyncqueue.TaskQueue.doNotify:()V
2: iload 2
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/glassfish/grizzly/asyncqueue/TaskQueue<TE;>;
0 3 1 amount I
1 3 2 space I
MethodParameters:
Name Flags
amount final
public int spaceInBytes();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.glassfish.grizzly.asyncqueue.TaskQueue.spaceInBytes:I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/glassfish/grizzly/asyncqueue/TaskQueue<TE;>;
public java.util.Queue<E> getQueue();
descriptor: ()Ljava/util/Queue;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.glassfish.grizzly.asyncqueue.TaskQueue.queue:Ljava/util/Queue;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/glassfish/grizzly/asyncqueue/TaskQueue<TE;>;
Signature: ()Ljava/util/Queue<TE;>;
public void notifyWritePossible(org.glassfish.grizzly.WriteHandler);
descriptor: (Lorg/glassfish/grizzly/WriteHandler;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
aload 0
getfield org.glassfish.grizzly.asyncqueue.TaskQueue.maxQueueSizeHolder:Lorg/glassfish/grizzly/asyncqueue/TaskQueue$MutableMaxQueueSize;
invokeinterface org.glassfish.grizzly.asyncqueue.TaskQueue$MutableMaxQueueSize.getMaxQueueSize:()I
invokevirtual org.glassfish.grizzly.asyncqueue.TaskQueue.notifyWritePossible:(Lorg/glassfish/grizzly/WriteHandler;I)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/glassfish/grizzly/asyncqueue/TaskQueue<TE;>;
0 2 1 writeHandler Lorg/glassfish/grizzly/WriteHandler;
MethodParameters:
Name Flags
writeHandler final
public void notifyWritePossible(org.glassfish.grizzly.WriteHandler, int);
descriptor: (Lorg/glassfish/grizzly/WriteHandler;I)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 1
ifnonnull 2
1: return
2: StackMap locals:
StackMap stack:
aload 0
getfield org.glassfish.grizzly.asyncqueue.TaskQueue.isClosed:Z
ifeq 5
3: aload 1
new java.io.IOException
dup
ldc "Connection is closed"
invokespecial java.io.IOException.<init>:(Ljava/lang/String;)V
invokeinterface org.glassfish.grizzly.WriteHandler.onError:(Ljava/lang/Throwable;)V
4: return
5: StackMap locals:
StackMap stack:
iload 2
iflt 6
aload 0
invokevirtual org.glassfish.grizzly.asyncqueue.TaskQueue.spaceInBytes:()I
iload 2
if_icmpge 11
6: StackMap locals:
StackMap stack:
aload 1
invokeinterface org.glassfish.grizzly.WriteHandler.onWritePossible:()V
7: goto 10
StackMap locals:
StackMap stack: java.lang.Throwable
8: astore 3
start local 3 9: aload 1
aload 3
invokeinterface org.glassfish.grizzly.WriteHandler.onError:(Ljava/lang/Throwable;)V
end local 3 10: StackMap locals:
StackMap stack:
return
11: StackMap locals:
StackMap stack:
aload 0
aload 1
invokevirtual org.glassfish.grizzly.asyncqueue.TaskQueue.offerWriteHandler:(Lorg/glassfish/grizzly/WriteHandler;)V
12: aload 0
invokevirtual org.glassfish.grizzly.asyncqueue.TaskQueue.spaceInBytes:()I
iload 2
if_icmpge 18
aload 0
aload 1
invokevirtual org.glassfish.grizzly.asyncqueue.TaskQueue.removeWriteHandler:(Lorg/glassfish/grizzly/WriteHandler;)Z
ifeq 18
13: aload 1
invokeinterface org.glassfish.grizzly.WriteHandler.onWritePossible:()V
14: goto 19
StackMap locals:
StackMap stack: java.lang.Throwable
15: astore 3
start local 3 16: aload 1
aload 3
invokeinterface org.glassfish.grizzly.WriteHandler.onError:(Ljava/lang/Throwable;)V
end local 3 17: goto 19
18: StackMap locals:
StackMap stack:
aload 0
aload 1
invokevirtual org.glassfish.grizzly.asyncqueue.TaskQueue.checkWriteHandlerOnClose:(Lorg/glassfish/grizzly/WriteHandler;)V
19: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 20 0 this Lorg/glassfish/grizzly/asyncqueue/TaskQueue<TE;>;
0 20 1 writeHandler Lorg/glassfish/grizzly/WriteHandler;
0 20 2 maxQueueSize I
9 10 3 e Ljava/lang/Throwable;
16 17 3 e Ljava/lang/Throwable;
Exception table:
from to target type
6 7 8 Class java.lang.Throwable
13 14 15 Class java.lang.Throwable
MethodParameters:
Name Flags
writeHandler final
maxQueueSize final
public boolean forgetWritePossible(org.glassfish.grizzly.WriteHandler);
descriptor: (Lorg/glassfish/grizzly/WriteHandler;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokevirtual org.glassfish.grizzly.asyncqueue.TaskQueue.removeWriteHandler:(Lorg/glassfish/grizzly/WriteHandler;)Z
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/glassfish/grizzly/asyncqueue/TaskQueue<TE;>;
0 1 1 writeHandler Lorg/glassfish/grizzly/WriteHandler;
MethodParameters:
Name Flags
writeHandler final
private void checkWriteHandlerOnClose(org.glassfish.grizzly.WriteHandler);
descriptor: (Lorg/glassfish/grizzly/WriteHandler;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield org.glassfish.grizzly.asyncqueue.TaskQueue.isClosed:Z
ifeq 2
aload 0
aload 1
invokevirtual org.glassfish.grizzly.asyncqueue.TaskQueue.removeWriteHandler:(Lorg/glassfish/grizzly/WriteHandler;)Z
ifeq 2
1: aload 1
new java.io.IOException
dup
ldc "Connection is closed"
invokespecial java.io.IOException.<init>:(Ljava/lang/String;)V
invokeinterface org.glassfish.grizzly.WriteHandler.onError:(Ljava/lang/Throwable;)V
2: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/glassfish/grizzly/asyncqueue/TaskQueue<TE;>;
0 3 1 writeHandler Lorg/glassfish/grizzly/WriteHandler;
MethodParameters:
Name Flags
writeHandler final
public void doNotify();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=4, args_size=1
start local 0 0: aload 0
getfield org.glassfish.grizzly.asyncqueue.TaskQueue.maxQueueSizeHolder:Lorg/glassfish/grizzly/asyncqueue/TaskQueue$MutableMaxQueueSize;
ifnull 1
aload 0
getfield org.glassfish.grizzly.asyncqueue.TaskQueue.writeHandlersCounter:I
ifne 2
1: StackMap locals:
StackMap stack:
return
2: StackMap locals:
StackMap stack:
aload 0
getfield org.glassfish.grizzly.asyncqueue.TaskQueue.maxQueueSizeHolder:Lorg/glassfish/grizzly/asyncqueue/TaskQueue$MutableMaxQueueSize;
invokeinterface org.glassfish.grizzly.asyncqueue.TaskQueue$MutableMaxQueueSize.getMaxQueueSize:()I
istore 1
start local 1 3: goto 11
4: StackMap locals: int
StackMap stack:
aload 0
invokevirtual org.glassfish.grizzly.asyncqueue.TaskQueue.pollWriteHandler:()Lorg/glassfish/grizzly/WriteHandler;
astore 2
start local 2 5: aload 2
ifnonnull 7
6: return
7: StackMap locals: org.glassfish.grizzly.WriteHandler
StackMap stack:
aload 2
invokeinterface org.glassfish.grizzly.WriteHandler.onWritePossible:()V
8: goto 11
StackMap locals:
StackMap stack: java.lang.Throwable
9: astore 3
start local 3 10: aload 2
aload 3
invokeinterface org.glassfish.grizzly.WriteHandler.onError:(Ljava/lang/Throwable;)V
end local 3 end local 2 11: StackMap locals:
StackMap stack:
aload 0
invokevirtual org.glassfish.grizzly.asyncqueue.TaskQueue.spaceInBytes:()I
iload 1
if_icmplt 4
12: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 13 0 this Lorg/glassfish/grizzly/asyncqueue/TaskQueue<TE;>;
3 13 1 maxQueueSize I
5 11 2 writeHandler Lorg/glassfish/grizzly/WriteHandler;
10 11 3 e Ljava/lang/Throwable;
Exception table:
from to target type
7 8 9 Class java.lang.Throwable
public void setCurrentElement();
descriptor: (Lorg/glassfish/grizzly/asyncqueue/AsyncQueueRecord;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
putfield org.glassfish.grizzly.asyncqueue.TaskQueue.currentElement:Lorg/glassfish/grizzly/asyncqueue/AsyncQueueRecord;
1: aload 1
ifnull 3
aload 0
getfield org.glassfish.grizzly.asyncqueue.TaskQueue.isClosed:Z
ifeq 3
getstatic org.glassfish.grizzly.asyncqueue.TaskQueue.currentElementUpdater:Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;
aload 0
aload 1
aconst_null
invokevirtual java.util.concurrent.atomic.AtomicReferenceFieldUpdater.compareAndSet:(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Z
ifeq 3
2: aload 1
new java.io.IOException
dup
ldc "Connection closed"
invokespecial java.io.IOException.<init>:(Ljava/lang/String;)V
invokevirtual org.glassfish.grizzly.asyncqueue.AsyncQueueRecord.notifyFailure:(Ljava/lang/Throwable;)V
3: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/glassfish/grizzly/asyncqueue/TaskQueue<TE;>;
0 4 1 task TE;
Signature: (TE;)V
MethodParameters:
Name Flags
task final
public boolean compareAndSetCurrentElement(E, );
descriptor: (Lorg/glassfish/grizzly/asyncqueue/AsyncQueueRecord;Lorg/glassfish/grizzly/asyncqueue/AsyncQueueRecord;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=3, args_size=3
start local 0 start local 1 start local 2 0: getstatic org.glassfish.grizzly.asyncqueue.TaskQueue.currentElementUpdater:Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;
aload 0
aload 1
aload 2
invokevirtual java.util.concurrent.atomic.AtomicReferenceFieldUpdater.compareAndSet:(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Z
ifeq 5
1: aload 2
ifnull 4
aload 0
getfield org.glassfish.grizzly.asyncqueue.TaskQueue.isClosed:Z
ifeq 4
getstatic org.glassfish.grizzly.asyncqueue.TaskQueue.currentElementUpdater:Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;
aload 0
aload 2
aconst_null
invokevirtual java.util.concurrent.atomic.AtomicReferenceFieldUpdater.compareAndSet:(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Z
ifeq 4
2: aload 2
new java.io.IOException
dup
ldc "Connection closed"
invokespecial java.io.IOException.<init>:(Ljava/lang/String;)V
invokevirtual org.glassfish.grizzly.asyncqueue.AsyncQueueRecord.notifyFailure:(Ljava/lang/Throwable;)V
3: iconst_0
ireturn
4: StackMap locals:
StackMap stack:
iconst_1
ireturn
5: StackMap locals:
StackMap stack:
iconst_0
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lorg/glassfish/grizzly/asyncqueue/TaskQueue<TE;>;
0 6 1 expected TE;
0 6 2 newValue TE;
Signature: (TE;TE;)Z
MethodParameters:
Name Flags
expected final
newValue final
public boolean remove();
descriptor: (Lorg/glassfish/grizzly/asyncqueue/AsyncQueueRecord;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield org.glassfish.grizzly.asyncqueue.TaskQueue.queue:Ljava/util/Queue;
aload 1
invokeinterface java.util.Queue.remove:(Ljava/lang/Object;)Z
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/glassfish/grizzly/asyncqueue/TaskQueue<TE;>;
0 1 1 task TE;
Signature: (TE;)Z
MethodParameters:
Name Flags
task final
public void offer();
descriptor: (Lorg/glassfish/grizzly/asyncqueue/AsyncQueueRecord;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield org.glassfish.grizzly.asyncqueue.TaskQueue.queue:Ljava/util/Queue;
aload 1
invokeinterface java.util.Queue.offer:(Ljava/lang/Object;)Z
pop
1: aload 0
getfield org.glassfish.grizzly.asyncqueue.TaskQueue.isClosed:Z
ifeq 3
aload 0
getfield org.glassfish.grizzly.asyncqueue.TaskQueue.queue:Ljava/util/Queue;
aload 1
invokeinterface java.util.Queue.remove:(Ljava/lang/Object;)Z
ifeq 3
2: aload 1
new java.io.IOException
dup
ldc "Connection closed"
invokespecial java.io.IOException.<init>:(Ljava/lang/String;)V
invokevirtual org.glassfish.grizzly.asyncqueue.AsyncQueueRecord.notifyFailure:(Ljava/lang/Throwable;)V
3: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/glassfish/grizzly/asyncqueue/TaskQueue<TE;>;
0 4 1 task TE;
Signature: (TE;)V
MethodParameters:
Name Flags
task final
public boolean isEmpty();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.glassfish.grizzly.asyncqueue.TaskQueue.spaceInBytes:I
ifne 1
iconst_1
ireturn
StackMap locals:
StackMap stack:
1: iconst_0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/glassfish/grizzly/asyncqueue/TaskQueue<TE;>;
public void onClose();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
aconst_null
invokevirtual org.glassfish.grizzly.asyncqueue.TaskQueue.onClose:(Ljava/lang/Throwable;)V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/glassfish/grizzly/asyncqueue/TaskQueue<TE;>;
public void onClose(java.lang.Throwable);
descriptor: (Ljava/lang/Throwable;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=4, args_size=2
start local 0 start local 1 0: aload 0
iconst_1
putfield org.glassfish.grizzly.asyncqueue.TaskQueue.isClosed:Z
1: aconst_null
astore 2
start local 2 2: aload 0
invokevirtual org.glassfish.grizzly.asyncqueue.TaskQueue.isEmpty:()Z
ifne 13
3: aload 2
ifnonnull 7
4: new java.io.IOException
dup
ldc "Connection closed"
aload 1
invokespecial java.io.IOException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
astore 2
5: goto 7
start local 3 6: StackMap locals: java.io.IOException org.glassfish.grizzly.asyncqueue.AsyncQueueRecord
StackMap stack:
aload 3
aload 2
invokevirtual org.glassfish.grizzly.asyncqueue.AsyncQueueRecord.notifyFailure:(Ljava/lang/Throwable;)V
end local 3 7: StackMap locals:
StackMap stack:
aload 0
invokevirtual org.glassfish.grizzly.asyncqueue.TaskQueue.poll:()Lorg/glassfish/grizzly/asyncqueue/AsyncQueueRecord;
dup
astore 3
start local 3 8: ifnonnull 6
end local 3 9: goto 13
start local 3 10: StackMap locals: org.glassfish.grizzly.WriteHandler
StackMap stack:
aload 2
ifnonnull 12
11: new java.io.IOException
dup
ldc "Connection closed"
aload 1
invokespecial java.io.IOException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
astore 2
12: StackMap locals:
StackMap stack:
aload 3
aload 2
invokeinterface org.glassfish.grizzly.WriteHandler.onError:(Ljava/lang/Throwable;)V
end local 3 13: StackMap locals:
StackMap stack:
aload 0
invokevirtual org.glassfish.grizzly.asyncqueue.TaskQueue.pollWriteHandler:()Lorg/glassfish/grizzly/WriteHandler;
dup
astore 3
start local 3 14: ifnonnull 10
15: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 16 0 this Lorg/glassfish/grizzly/asyncqueue/TaskQueue<TE;>;
0 16 1 cause Ljava/lang/Throwable;
2 16 2 error Ljava/io/IOException;
6 7 3 record Lorg/glassfish/grizzly/asyncqueue/AsyncQueueRecord;
8 9 3 record Lorg/glassfish/grizzly/asyncqueue/AsyncQueueRecord;
10 13 3 writeHandler Lorg/glassfish/grizzly/WriteHandler;
14 16 3 writeHandler Lorg/glassfish/grizzly/WriteHandler;
MethodParameters:
Name Flags
cause final
private void offerWriteHandler(org.glassfish.grizzly.WriteHandler);
descriptor: (Lorg/glassfish/grizzly/WriteHandler;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: getstatic org.glassfish.grizzly.asyncqueue.TaskQueue.writeHandlersCounterUpdater:Ljava/util/concurrent/atomic/AtomicIntegerFieldUpdater;
aload 0
invokevirtual java.util.concurrent.atomic.AtomicIntegerFieldUpdater.incrementAndGet:(Ljava/lang/Object;)I
pop
1: aload 0
getfield org.glassfish.grizzly.asyncqueue.TaskQueue.writeHandlersQueue:Ljava/util/Queue;
aload 1
invokeinterface java.util.Queue.offer:(Ljava/lang/Object;)Z
pop
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/glassfish/grizzly/asyncqueue/TaskQueue<TE;>;
0 3 1 writeHandler Lorg/glassfish/grizzly/WriteHandler;
MethodParameters:
Name Flags
writeHandler final
private boolean removeWriteHandler(org.glassfish.grizzly.WriteHandler);
descriptor: (Lorg/glassfish/grizzly/WriteHandler;)Z
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield org.glassfish.grizzly.asyncqueue.TaskQueue.writeHandlersQueue:Ljava/util/Queue;
aload 1
invokeinterface java.util.Queue.remove:(Ljava/lang/Object;)Z
ifeq 3
1: getstatic org.glassfish.grizzly.asyncqueue.TaskQueue.writeHandlersCounterUpdater:Ljava/util/concurrent/atomic/AtomicIntegerFieldUpdater;
aload 0
invokevirtual java.util.concurrent.atomic.AtomicIntegerFieldUpdater.decrementAndGet:(Ljava/lang/Object;)I
pop
2: iconst_1
ireturn
3: StackMap locals:
StackMap stack:
iconst_0
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/glassfish/grizzly/asyncqueue/TaskQueue<TE;>;
0 4 1 writeHandler Lorg/glassfish/grizzly/WriteHandler;
MethodParameters:
Name Flags
writeHandler final
private org.glassfish.grizzly.WriteHandler pollWriteHandler();
descriptor: ()Lorg/glassfish/grizzly/WriteHandler;
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=2, args_size=1
start local 0 0: aload 0
getfield org.glassfish.grizzly.asyncqueue.TaskQueue.writeHandlersQueue:Ljava/util/Queue;
invokeinterface java.util.Queue.poll:()Ljava/lang/Object;
checkcast org.glassfish.grizzly.WriteHandler
astore 1
start local 1 1: aload 1
ifnull 4
2: getstatic org.glassfish.grizzly.asyncqueue.TaskQueue.writeHandlersCounterUpdater:Ljava/util/concurrent/atomic/AtomicIntegerFieldUpdater;
aload 0
invokevirtual java.util.concurrent.atomic.AtomicIntegerFieldUpdater.decrementAndGet:(Ljava/lang/Object;)I
pop
3: aload 1
areturn
4: StackMap locals: org.glassfish.grizzly.WriteHandler
StackMap stack:
aconst_null
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/glassfish/grizzly/asyncqueue/TaskQueue<TE;>;
1 5 1 record Lorg/glassfish/grizzly/WriteHandler;
}
Signature: <E:Lorg/glassfish/grizzly/asyncqueue/AsyncQueueRecord;>Ljava/lang/Object;
SourceFile: "TaskQueue.java"
NestMembers:
org.glassfish.grizzly.asyncqueue.TaskQueue$MutableMaxQueueSize
InnerClasses:
public abstract MutableMaxQueueSize = org.glassfish.grizzly.asyncqueue.TaskQueue$MutableMaxQueueSize of org.glassfish.grizzly.asyncqueue.TaskQueue