public class org.apache.activemq.SimplePriorityMessageDispatchChannel extends java.lang.Object implements org.apache.activemq.MessageDispatchChannel
{
private static final java.lang.Integer MAX_PRIORITY;
private final java.lang.Object mutex;
private final java.util.LinkedList[] lists;
private boolean closed;
private boolean running;
private int size;
public void <init>()
{
java.util.LinkedList[] v, v;
java.lang.Integer v, v;
org.apache.activemq.SimplePriorityMessageDispatchChannel v;
int v, v, v;
java.lang.Object v;
java.util.LinkedList v;
v := @this: org.apache.activemq.SimplePriorityMessageDispatchChannel;
specialinvoke v.<java.lang.Object: void <init>()>();
v = new java.lang.Object;
specialinvoke v.<java.lang.Object: void <init>()>();
v.<org.apache.activemq.SimplePriorityMessageDispatchChannel: java.lang.Object mutex> = v;
v.<org.apache.activemq.SimplePriorityMessageDispatchChannel: int size> = 0;
v = <org.apache.activemq.SimplePriorityMessageDispatchChannel: java.lang.Integer MAX_PRIORITY>;
v = virtualinvoke v.<java.lang.Integer: int intValue()>();
v = newarray (java.util.LinkedList)[v];
v.<org.apache.activemq.SimplePriorityMessageDispatchChannel: java.util.LinkedList[] lists> = v;
v = 0;
label:
v = <org.apache.activemq.SimplePriorityMessageDispatchChannel: java.lang.Integer MAX_PRIORITY>;
v = virtualinvoke v.<java.lang.Integer: int intValue()>();
if v >= v goto label;
v = v.<org.apache.activemq.SimplePriorityMessageDispatchChannel: java.util.LinkedList[] lists>;
v = new java.util.LinkedList;
specialinvoke v.<java.util.LinkedList: void <init>()>();
v[v] = v;
v = v + 1;
goto label;
label:
return;
}
public void enqueue(org.apache.activemq.command.MessageDispatch)
{
java.lang.Throwable v;
org.apache.activemq.SimplePriorityMessageDispatchChannel v;
org.apache.activemq.command.MessageDispatch v;
int v, v;
java.lang.Object v, v;
java.util.LinkedList v;
v := @this: org.apache.activemq.SimplePriorityMessageDispatchChannel;
v := @parameter: org.apache.activemq.command.MessageDispatch;
v = v.<org.apache.activemq.SimplePriorityMessageDispatchChannel: java.lang.Object mutex>;
entermonitor v;
label:
v = virtualinvoke v.<org.apache.activemq.SimplePriorityMessageDispatchChannel: java.util.LinkedList getList(org.apache.activemq.command.MessageDispatch)>(v);
virtualinvoke v.<java.util.LinkedList: void addLast(java.lang.Object)>(v);
v = v.<org.apache.activemq.SimplePriorityMessageDispatchChannel: int size>;
v = v + 1;
v.<org.apache.activemq.SimplePriorityMessageDispatchChannel: int size> = v;
v = v.<org.apache.activemq.SimplePriorityMessageDispatchChannel: java.lang.Object mutex>;
virtualinvoke v.<java.lang.Object: void notify()>();
exitmonitor v;
label:
goto label;
label:
v := @caughtexception;
exitmonitor v;
throw v;
label:
return;
catch java.lang.Throwable from label to label with label;
}
public void enqueueFirst(org.apache.activemq.command.MessageDispatch)
{
java.lang.Throwable v;
org.apache.activemq.SimplePriorityMessageDispatchChannel v;
org.apache.activemq.command.MessageDispatch v;
int v, v;
java.lang.Object v, v;
java.util.LinkedList v;
v := @this: org.apache.activemq.SimplePriorityMessageDispatchChannel;
v := @parameter: org.apache.activemq.command.MessageDispatch;
v = v.<org.apache.activemq.SimplePriorityMessageDispatchChannel: java.lang.Object mutex>;
entermonitor v;
label:
v = virtualinvoke v.<org.apache.activemq.SimplePriorityMessageDispatchChannel: java.util.LinkedList getList(org.apache.activemq.command.MessageDispatch)>(v);
virtualinvoke v.<java.util.LinkedList: void addFirst(java.lang.Object)>(v);
v = v.<org.apache.activemq.SimplePriorityMessageDispatchChannel: int size>;
v = v + 1;
v.<org.apache.activemq.SimplePriorityMessageDispatchChannel: int size> = v;
v = v.<org.apache.activemq.SimplePriorityMessageDispatchChannel: java.lang.Object mutex>;
virtualinvoke v.<java.lang.Object: void notify()>();
exitmonitor v;
label:
goto label;
label:
v := @caughtexception;
exitmonitor v;
throw v;
label:
return;
catch java.lang.Throwable from label to label with label;
}
public boolean isEmpty()
{
int v;
org.apache.activemq.SimplePriorityMessageDispatchChannel v;
boolean v;
v := @this: org.apache.activemq.SimplePriorityMessageDispatchChannel;
v = v.<org.apache.activemq.SimplePriorityMessageDispatchChannel: int size>;
if v != 0 goto label;
v = 1;
goto label;
label:
v = 0;
label:
return v;
}
public org.apache.activemq.command.MessageDispatch dequeue(long) throws java.lang.InterruptedException
{
java.lang.Throwable v;
long v;
org.apache.activemq.SimplePriorityMessageDispatchChannel v;
org.apache.activemq.command.MessageDispatch v;
byte v, v;
java.lang.Object v, v, v;
boolean v, v, v, v, v, v;
v := @this: org.apache.activemq.SimplePriorityMessageDispatchChannel;
v := @parameter: long;
v = v.<org.apache.activemq.SimplePriorityMessageDispatchChannel: java.lang.Object mutex>;
entermonitor v;
label:
v = v cmp 0L;
if v == 0 goto label;
v = v.<org.apache.activemq.SimplePriorityMessageDispatchChannel: boolean closed>;
if v != 0 goto label;
v = virtualinvoke v.<org.apache.activemq.SimplePriorityMessageDispatchChannel: boolean isEmpty()>();
if v != 0 goto label;
v = v.<org.apache.activemq.SimplePriorityMessageDispatchChannel: boolean running>;
if v != 0 goto label;
label:
v = v cmp -1L;
if v != 0 goto label;
v = v.<org.apache.activemq.SimplePriorityMessageDispatchChannel: java.lang.Object mutex>;
virtualinvoke v.<java.lang.Object: void wait()>();
goto label;
label:
v = v.<org.apache.activemq.SimplePriorityMessageDispatchChannel: java.lang.Object mutex>;
virtualinvoke v.<java.lang.Object: void wait(long)>(v);
label:
v = v.<org.apache.activemq.SimplePriorityMessageDispatchChannel: boolean closed>;
if v != 0 goto label;
v = v.<org.apache.activemq.SimplePriorityMessageDispatchChannel: boolean running>;
if v == 0 goto label;
v = virtualinvoke v.<org.apache.activemq.SimplePriorityMessageDispatchChannel: boolean isEmpty()>();
if v == 0 goto label;
label:
exitmonitor v;
label:
return null;
label:
v = specialinvoke v.<org.apache.activemq.SimplePriorityMessageDispatchChannel: org.apache.activemq.command.MessageDispatch removeFirst()>();
exitmonitor v;
label:
return v;
label:
v := @caughtexception;
exitmonitor v;
throw v;
catch java.lang.Throwable from label to label with label;
catch java.lang.Throwable from label to label with label;
}
public org.apache.activemq.command.MessageDispatch dequeueNoWait()
{
java.lang.Throwable v;
org.apache.activemq.command.MessageDispatch v;
java.lang.Object v;
org.apache.activemq.SimplePriorityMessageDispatchChannel v;
boolean v, v, v;
v := @this: org.apache.activemq.SimplePriorityMessageDispatchChannel;
v = v.<org.apache.activemq.SimplePriorityMessageDispatchChannel: java.lang.Object mutex>;
entermonitor v;
label:
v = v.<org.apache.activemq.SimplePriorityMessageDispatchChannel: boolean closed>;
if v != 0 goto label;
v = v.<org.apache.activemq.SimplePriorityMessageDispatchChannel: boolean running>;
if v == 0 goto label;
v = virtualinvoke v.<org.apache.activemq.SimplePriorityMessageDispatchChannel: boolean isEmpty()>();
if v == 0 goto label;
label:
exitmonitor v;
label:
return null;
label:
v = specialinvoke v.<org.apache.activemq.SimplePriorityMessageDispatchChannel: org.apache.activemq.command.MessageDispatch removeFirst()>();
exitmonitor v;
label:
return v;
label:
v := @caughtexception;
exitmonitor v;
throw v;
catch java.lang.Throwable from label to label with label;
catch java.lang.Throwable from label to label with label;
}
public org.apache.activemq.command.MessageDispatch peek()
{
java.lang.Throwable v;
org.apache.activemq.command.MessageDispatch v;
java.lang.Object v;
org.apache.activemq.SimplePriorityMessageDispatchChannel v;
boolean v, v, v;
v := @this: org.apache.activemq.SimplePriorityMessageDispatchChannel;
v = v.<org.apache.activemq.SimplePriorityMessageDispatchChannel: java.lang.Object mutex>;
entermonitor v;
label:
v = v.<org.apache.activemq.SimplePriorityMessageDispatchChannel: boolean closed>;
if v != 0 goto label;
v = v.<org.apache.activemq.SimplePriorityMessageDispatchChannel: boolean running>;
if v == 0 goto label;
v = virtualinvoke v.<org.apache.activemq.SimplePriorityMessageDispatchChannel: boolean isEmpty()>();
if v == 0 goto label;
label:
exitmonitor v;
label:
return null;
label:
v = specialinvoke v.<org.apache.activemq.SimplePriorityMessageDispatchChannel: org.apache.activemq.command.MessageDispatch getFirst()>();
exitmonitor v;
label:
return v;
label:
v := @caughtexception;
exitmonitor v;
throw v;
catch java.lang.Throwable from label to label with label;
catch java.lang.Throwable from label to label with label;
}
public void start()
{
java.lang.Throwable v;
java.lang.Object v, v;
org.apache.activemq.SimplePriorityMessageDispatchChannel v;
v := @this: org.apache.activemq.SimplePriorityMessageDispatchChannel;
v = v.<org.apache.activemq.SimplePriorityMessageDispatchChannel: java.lang.Object mutex>;
entermonitor v;
label:
v.<org.apache.activemq.SimplePriorityMessageDispatchChannel: boolean running> = 1;
v = v.<org.apache.activemq.SimplePriorityMessageDispatchChannel: java.lang.Object mutex>;
virtualinvoke v.<java.lang.Object: void notifyAll()>();
exitmonitor v;
label:
goto label;
label:
v := @caughtexception;
exitmonitor v;
throw v;
label:
return;
catch java.lang.Throwable from label to label with label;
}
public void stop()
{
java.lang.Throwable v;
java.lang.Object v, v;
org.apache.activemq.SimplePriorityMessageDispatchChannel v;
v := @this: org.apache.activemq.SimplePriorityMessageDispatchChannel;
v = v.<org.apache.activemq.SimplePriorityMessageDispatchChannel: java.lang.Object mutex>;
entermonitor v;
label:
v.<org.apache.activemq.SimplePriorityMessageDispatchChannel: boolean running> = 0;
v = v.<org.apache.activemq.SimplePriorityMessageDispatchChannel: java.lang.Object mutex>;
virtualinvoke v.<java.lang.Object: void notifyAll()>();
exitmonitor v;
label:
goto label;
label:
v := @caughtexception;
exitmonitor v;
throw v;
label:
return;
catch java.lang.Throwable from label to label with label;
}
public void close()
{
java.lang.Throwable v;
java.lang.Object v, v;
org.apache.activemq.SimplePriorityMessageDispatchChannel v;
boolean v;
v := @this: org.apache.activemq.SimplePriorityMessageDispatchChannel;
v = v.<org.apache.activemq.SimplePriorityMessageDispatchChannel: java.lang.Object mutex>;
entermonitor v;
label:
v = v.<org.apache.activemq.SimplePriorityMessageDispatchChannel: boolean closed>;
if v != 0 goto label;
v.<org.apache.activemq.SimplePriorityMessageDispatchChannel: boolean running> = 0;
v.<org.apache.activemq.SimplePriorityMessageDispatchChannel: boolean closed> = 1;
label:
v = v.<org.apache.activemq.SimplePriorityMessageDispatchChannel: java.lang.Object mutex>;
virtualinvoke v.<java.lang.Object: void notifyAll()>();
exitmonitor v;
label:
goto label;
label:
v := @caughtexception;
exitmonitor v;
throw v;
label:
return;
catch java.lang.Throwable from label to label with label;
}
public void clear()
{
java.lang.Throwable v;
java.util.LinkedList[] v;
java.lang.Integer v;
org.apache.activemq.SimplePriorityMessageDispatchChannel v;
int v, v;
java.lang.Object v;
java.util.LinkedList v;
v := @this: org.apache.activemq.SimplePriorityMessageDispatchChannel;
v = v.<org.apache.activemq.SimplePriorityMessageDispatchChannel: java.lang.Object mutex>;
entermonitor v;
label:
v = 0;
label:
v = <org.apache.activemq.SimplePriorityMessageDispatchChannel: java.lang.Integer MAX_PRIORITY>;
v = virtualinvoke v.<java.lang.Integer: int intValue()>();
if v >= v goto label;
v = v.<org.apache.activemq.SimplePriorityMessageDispatchChannel: java.util.LinkedList[] lists>;
v = v[v];
virtualinvoke v.<java.util.LinkedList: void clear()>();
v = v + 1;
goto label;
label:
v.<org.apache.activemq.SimplePriorityMessageDispatchChannel: int size> = 0;
exitmonitor v;
label:
goto label;
label:
v := @caughtexception;
exitmonitor v;
throw v;
label:
return;
catch java.lang.Throwable from label to label with label;
}
public boolean isClosed()
{
org.apache.activemq.SimplePriorityMessageDispatchChannel v;
boolean v;
v := @this: org.apache.activemq.SimplePriorityMessageDispatchChannel;
v = v.<org.apache.activemq.SimplePriorityMessageDispatchChannel: boolean closed>;
return v;
}
public int size()
{
java.lang.Throwable v;
int v;
java.lang.Object v;
org.apache.activemq.SimplePriorityMessageDispatchChannel v;
v := @this: org.apache.activemq.SimplePriorityMessageDispatchChannel;
v = v.<org.apache.activemq.SimplePriorityMessageDispatchChannel: java.lang.Object mutex>;
entermonitor v;
label:
v = v.<org.apache.activemq.SimplePriorityMessageDispatchChannel: int size>;
exitmonitor v;
label:
return v;
label:
v := @caughtexception;
exitmonitor v;
throw v;
catch java.lang.Throwable from label to label with label;
}
public java.lang.Object getMutex()
{
java.lang.Object v;
org.apache.activemq.SimplePriorityMessageDispatchChannel v;
v := @this: org.apache.activemq.SimplePriorityMessageDispatchChannel;
v = v.<org.apache.activemq.SimplePriorityMessageDispatchChannel: java.lang.Object mutex>;
return v;
}
public boolean isRunning()
{
org.apache.activemq.SimplePriorityMessageDispatchChannel v;
boolean v;
v := @this: org.apache.activemq.SimplePriorityMessageDispatchChannel;
v = v.<org.apache.activemq.SimplePriorityMessageDispatchChannel: boolean running>;
return v;
}
public java.util.List removeAll()
{
java.lang.Throwable v;
java.util.LinkedList[] v;
java.lang.Integer v;
org.apache.activemq.SimplePriorityMessageDispatchChannel v;
java.util.ArrayList v;
int v, v, v, v, v, v;
java.lang.Object v;
java.util.LinkedList v;
v := @this: org.apache.activemq.SimplePriorityMessageDispatchChannel;
v = v.<org.apache.activemq.SimplePriorityMessageDispatchChannel: java.lang.Object mutex>;
entermonitor v;
label:
v = new java.util.ArrayList;
v = virtualinvoke v.<org.apache.activemq.SimplePriorityMessageDispatchChannel: int size()>();
specialinvoke v.<java.util.ArrayList: void <init>(int)>(v);
v = <org.apache.activemq.SimplePriorityMessageDispatchChannel: java.lang.Integer MAX_PRIORITY>;
v = virtualinvoke v.<java.lang.Integer: int intValue()>();
v = v - 1;
label:
if v < 0 goto label;
v = v.<org.apache.activemq.SimplePriorityMessageDispatchChannel: java.util.LinkedList[] lists>;
v = v[v];
virtualinvoke v.<java.util.ArrayList: boolean addAll(java.util.Collection)>(v);
v = v.<org.apache.activemq.SimplePriorityMessageDispatchChannel: int size>;
v = interfaceinvoke v.<java.util.List: int size()>();
v = v - v;
v.<org.apache.activemq.SimplePriorityMessageDispatchChannel: int size> = v;
interfaceinvoke v.<java.util.List: void clear()>();
v = v - 1;
goto label;
label:
exitmonitor v;
label:
return v;
label:
v := @caughtexception;
exitmonitor v;
throw v;
catch java.lang.Throwable from label to label with label;
}
public java.lang.String toString()
{
java.util.LinkedList[] v;
java.lang.Integer v;
org.apache.activemq.SimplePriorityMessageDispatchChannel v;
int v, v;
java.lang.String v, v;
java.util.LinkedList v;
v := @this: org.apache.activemq.SimplePriorityMessageDispatchChannel;
v = "";
v = <org.apache.activemq.SimplePriorityMessageDispatchChannel: java.lang.Integer MAX_PRIORITY>;
v = virtualinvoke v.<java.lang.Integer: int intValue()>();
v = v - 1;
label:
if v < 0 goto label;
v = v.<org.apache.activemq.SimplePriorityMessageDispatchChannel: java.util.LinkedList[] lists>;
v = v[v];
v = virtualinvoke v.<java.util.LinkedList: java.lang.String toString()>();
v = dynamicinvoke "makeConcatWithConstants" <java.lang.String (java.lang.String,int,java.lang.String)>(v, v, v) <java.lang.invoke.StringConcatFactory: java.lang.invoke.CallSite makeConcatWithConstants(java.lang.invoke.MethodHandles$Lookup,java.lang.String,java.lang.invoke.MethodType,java.lang.String,java.lang.Object[])>("\u0001\u0001:{\u0001}");
v = v - 1;
goto label;
label:
return v;
}
protected int getPriority(org.apache.activemq.command.MessageDispatch)
{
org.apache.activemq.command.Message v, v;
org.apache.activemq.command.MessageDispatch v;
byte v;
int v, v;
org.apache.activemq.SimplePriorityMessageDispatchChannel v;
v := @this: org.apache.activemq.SimplePriorityMessageDispatchChannel;
v := @parameter: org.apache.activemq.command.MessageDispatch;
v = 4;
v = virtualinvoke v.<org.apache.activemq.command.MessageDispatch: org.apache.activemq.command.Message getMessage()>();
if v == null goto label;
v = virtualinvoke v.<org.apache.activemq.command.MessageDispatch: org.apache.activemq.command.Message getMessage()>();
v = virtualinvoke v.<org.apache.activemq.command.Message: byte getPriority()>();
v = staticinvoke <java.lang.Math: int max(int,int)>(v, 0);
v = staticinvoke <java.lang.Math: int min(int,int)>(v, 9);
label:
return v;
}
protected java.util.LinkedList getList(org.apache.activemq.command.MessageDispatch)
{
java.util.LinkedList[] v;
org.apache.activemq.command.MessageDispatch v;
int v;
java.util.LinkedList v;
org.apache.activemq.SimplePriorityMessageDispatchChannel v;
v := @this: org.apache.activemq.SimplePriorityMessageDispatchChannel;
v := @parameter: org.apache.activemq.command.MessageDispatch;
v = v.<org.apache.activemq.SimplePriorityMessageDispatchChannel: java.util.LinkedList[] lists>;
v = virtualinvoke v.<org.apache.activemq.SimplePriorityMessageDispatchChannel: int getPriority(org.apache.activemq.command.MessageDispatch)>(v);
v = v[v];
return v;
}
private final org.apache.activemq.command.MessageDispatch removeFirst()
{
java.util.LinkedList[] v;
java.lang.Integer v;
org.apache.activemq.SimplePriorityMessageDispatchChannel v;
int v, v, v, v, v;
java.lang.Object v;
java.util.LinkedList v;
boolean v;
v := @this: org.apache.activemq.SimplePriorityMessageDispatchChannel;
v = v.<org.apache.activemq.SimplePriorityMessageDispatchChannel: int size>;
if v <= 0 goto label;
v = <org.apache.activemq.SimplePriorityMessageDispatchChannel: java.lang.Integer MAX_PRIORITY>;
v = virtualinvoke v.<java.lang.Integer: int intValue()>();
v = v - 1;
label:
if v < 0 goto label;
v = v.<org.apache.activemq.SimplePriorityMessageDispatchChannel: java.util.LinkedList[] lists>;
v = v[v];
v = virtualinvoke v.<java.util.LinkedList: boolean isEmpty()>();
if v != 0 goto label;
v = v.<org.apache.activemq.SimplePriorityMessageDispatchChannel: int size>;
v = v - 1;
v.<org.apache.activemq.SimplePriorityMessageDispatchChannel: int size> = v;
v = virtualinvoke v.<java.util.LinkedList: java.lang.Object removeFirst()>();
return v;
label:
v = v - 1;
goto label;
label:
return null;
}
private final org.apache.activemq.command.MessageDispatch getFirst()
{
java.util.LinkedList[] v;
java.lang.Integer v;
org.apache.activemq.SimplePriorityMessageDispatchChannel v;
int v, v, v;
java.lang.Object v;
java.util.LinkedList v;
boolean v;
v := @this: org.apache.activemq.SimplePriorityMessageDispatchChannel;
v = v.<org.apache.activemq.SimplePriorityMessageDispatchChannel: int size>;
if v <= 0 goto label;
v = <org.apache.activemq.SimplePriorityMessageDispatchChannel: java.lang.Integer MAX_PRIORITY>;
v = virtualinvoke v.<java.lang.Integer: int intValue()>();
v = v - 1;
label:
if v < 0 goto label;
v = v.<org.apache.activemq.SimplePriorityMessageDispatchChannel: java.util.LinkedList[] lists>;
v = v[v];
v = virtualinvoke v.<java.util.LinkedList: boolean isEmpty()>();
if v != 0 goto label;
v = virtualinvoke v.<java.util.LinkedList: java.lang.Object getFirst()>();
return v;
label:
v = v - 1;
goto label;
label:
return null;
}
static void <clinit>()
{
java.lang.Integer v;
v = staticinvoke <java.lang.Integer: java.lang.Integer valueOf(int)>(10);
<org.apache.activemq.SimplePriorityMessageDispatchChannel: java.lang.Integer MAX_PRIORITY> = v;
return;
}
}