class org.apache.activemq.broker.region.cursors.TopicStorePrefetch extends org.apache.activemq.broker.region.cursors.AbstractStoreCursor
{
private static final org.slf4j.Logger LOG;
private final org.apache.activemq.store.TopicMessageStore store;
private final java.lang.String clientId;
private final java.lang.String subscriberName;
private final org.apache.activemq.broker.region.Subscription subscription;
private byte lastRecoveredPriority;
private boolean storeHasMessages;
public void <init>(org.apache.activemq.broker.region.Subscription, org.apache.activemq.broker.region.Topic, java.lang.String, java.lang.String)
{
org.apache.activemq.store.MessageStore v;
org.apache.activemq.broker.region.Topic v;
org.apache.activemq.broker.region.Subscription v;
org.apache.activemq.broker.region.cursors.TopicStorePrefetch v;
int v;
java.lang.String v, v;
boolean v;
v := @this: org.apache.activemq.broker.region.cursors.TopicStorePrefetch;
v := @parameter: org.apache.activemq.broker.region.Subscription;
v := @parameter: org.apache.activemq.broker.region.Topic;
v := @parameter: java.lang.String;
v := @parameter: java.lang.String;
specialinvoke v.<org.apache.activemq.broker.region.cursors.AbstractStoreCursor: void <init>(org.apache.activemq.broker.region.Destination)>(v);
v.<org.apache.activemq.broker.region.cursors.TopicStorePrefetch: byte lastRecoveredPriority> = 9;
v.<org.apache.activemq.broker.region.cursors.TopicStorePrefetch: boolean storeHasMessages> = 0;
v.<org.apache.activemq.broker.region.cursors.TopicStorePrefetch: org.apache.activemq.broker.region.Subscription subscription> = v;
v = virtualinvoke v.<org.apache.activemq.broker.region.Topic: org.apache.activemq.store.MessageStore getMessageStore()>();
v.<org.apache.activemq.broker.region.cursors.TopicStorePrefetch: org.apache.activemq.store.TopicMessageStore store> = v;
v.<org.apache.activemq.broker.region.cursors.TopicStorePrefetch: java.lang.String clientId> = v;
v.<org.apache.activemq.broker.region.cursors.TopicStorePrefetch: java.lang.String subscriberName> = v;
v.<org.apache.activemq.broker.region.cursors.TopicStorePrefetch: int maxProducersToAudit> = 32;
v.<org.apache.activemq.broker.region.cursors.TopicStorePrefetch: int maxAuditDepth> = 10000;
virtualinvoke v.<org.apache.activemq.broker.region.cursors.TopicStorePrefetch: void resetSize()>();
v = v.<org.apache.activemq.broker.region.cursors.TopicStorePrefetch: int size>;
if v <= 0 goto label;
v = 1;
goto label;
label:
v = 0;
label:
v.<org.apache.activemq.broker.region.cursors.TopicStorePrefetch: boolean storeHasMessages> = v;
return;
}
public boolean recoverMessageReference(org.apache.activemq.command.MessageId) throws java.lang.Exception
{
java.lang.RuntimeException v;
org.apache.activemq.command.MessageId v;
org.apache.activemq.broker.region.cursors.TopicStorePrefetch v;
v := @this: org.apache.activemq.broker.region.cursors.TopicStorePrefetch;
v := @parameter: org.apache.activemq.command.MessageId;
v = new java.lang.RuntimeException;
specialinvoke v.<java.lang.RuntimeException: void <init>(java.lang.String)>("Not supported");
throw v;
}
public synchronized void addMessageFirst(org.apache.activemq.broker.region.MessageReference) throws java.lang.Exception
{
org.apache.activemq.broker.region.MessageReference v;
org.apache.activemq.broker.region.cursors.PendingList v;
int v, v;
org.apache.activemq.broker.region.cursors.TopicStorePrefetch v;
v := @this: org.apache.activemq.broker.region.cursors.TopicStorePrefetch;
v := @parameter: org.apache.activemq.broker.region.MessageReference;
v = v.<org.apache.activemq.broker.region.cursors.TopicStorePrefetch: org.apache.activemq.broker.region.cursors.PendingList batchList>;
interfaceinvoke v.<org.apache.activemq.broker.region.cursors.PendingList: org.apache.activemq.broker.region.cursors.PendingNode addMessageFirst(org.apache.activemq.broker.region.MessageReference)>(v);
v = v.<org.apache.activemq.broker.region.cursors.TopicStorePrefetch: int size>;
v = v + 1;
v.<org.apache.activemq.broker.region.cursors.TopicStorePrefetch: int size> = v;
interfaceinvoke v.<org.apache.activemq.broker.region.MessageReference: int incrementReferenceCount()>();
return;
}
public final synchronized boolean addMessageLast(org.apache.activemq.broker.region.MessageReference) throws java.lang.Exception
{
org.apache.activemq.broker.region.MessageReference v;
boolean v, v;
org.apache.activemq.broker.region.cursors.TopicStorePrefetch v;
v := @this: org.apache.activemq.broker.region.cursors.TopicStorePrefetch;
v := @parameter: org.apache.activemq.broker.region.MessageReference;
v = specialinvoke v.<org.apache.activemq.broker.region.cursors.AbstractStoreCursor: boolean addMessageLast(org.apache.activemq.broker.region.MessageReference)>(v);
v.<org.apache.activemq.broker.region.cursors.TopicStorePrefetch: boolean storeHasMessages> = v;
v = v.<org.apache.activemq.broker.region.cursors.TopicStorePrefetch: boolean storeHasMessages>;
return v;
}
public synchronized boolean recoverMessage(org.apache.activemq.command.Message, boolean) throws java.lang.Exception
{
org.apache.activemq.filter.NonCachedMessageEvaluationContext v;
java.lang.Object[] v;
org.slf4j.Logger v;
org.apache.activemq.broker.region.Subscription v;
org.apache.activemq.command.MessageId v;
org.apache.activemq.broker.region.cursors.TopicStorePrefetch v;
org.apache.activemq.command.Message v;
byte v, v;
java.lang.Byte v;
boolean v, v, v;
v := @this: org.apache.activemq.broker.region.cursors.TopicStorePrefetch;
v := @parameter: org.apache.activemq.command.Message;
v := @parameter: boolean;
v = <org.apache.activemq.broker.region.cursors.TopicStorePrefetch: org.slf4j.Logger LOG>;
v = newarray (java.lang.Object)[3];
v[0] = v;
v = virtualinvoke v.<org.apache.activemq.command.Message: org.apache.activemq.command.MessageId getMessageId()>();
v[1] = v;
v = virtualinvoke v.<org.apache.activemq.command.Message: byte getPriority()>();
v = staticinvoke <java.lang.Byte: java.lang.Byte valueOf(byte)>(v);
v[2] = v;
interfaceinvoke v.<org.slf4j.Logger: void trace(java.lang.String,java.lang.Object[])>("{} recover: {}, priority: {}", v);
v = 0;
v = new org.apache.activemq.filter.NonCachedMessageEvaluationContext;
specialinvoke v.<org.apache.activemq.filter.NonCachedMessageEvaluationContext: void <init>()>();
virtualinvoke v.<org.apache.activemq.filter.MessageEvaluationContext: void setMessageReference(org.apache.activemq.broker.region.MessageReference)>(v);
v = v.<org.apache.activemq.broker.region.cursors.TopicStorePrefetch: org.apache.activemq.broker.region.Subscription subscription>;
v = interfaceinvoke v.<org.apache.activemq.broker.region.Subscription: boolean matches(org.apache.activemq.broker.region.MessageReference,org.apache.activemq.filter.MessageEvaluationContext)>(v, v);
if v == 0 goto label;
v = specialinvoke v.<org.apache.activemq.broker.region.cursors.AbstractStoreCursor: boolean recoverMessage(org.apache.activemq.command.Message,boolean)>(v, v);
if v == 0 goto label;
if v != 0 goto label;
v = virtualinvoke v.<org.apache.activemq.command.Message: byte getPriority()>();
v.<org.apache.activemq.broker.region.cursors.TopicStorePrefetch: byte lastRecoveredPriority> = v;
label:
v.<org.apache.activemq.broker.region.cursors.TopicStorePrefetch: boolean storeHasMessages> = 1;
label:
return v;
}
protected boolean duplicateFromStoreExcepted(org.apache.activemq.command.Message)
{
org.apache.activemq.command.Message v;
org.apache.activemq.broker.region.cursors.TopicStorePrefetch v;
v := @this: org.apache.activemq.broker.region.cursors.TopicStorePrefetch;
v := @parameter: org.apache.activemq.command.Message;
return 1;
}
protected synchronized int getStoreSize()
{
org.slf4j.Logger v;
java.lang.RuntimeException v;
java.lang.Exception v;
org.apache.activemq.broker.region.cursors.TopicStorePrefetch v;
org.apache.activemq.store.TopicMessageStore v;
int v;
java.lang.String v, v;
v := @this: org.apache.activemq.broker.region.cursors.TopicStorePrefetch;
label:
v = v.<org.apache.activemq.broker.region.cursors.TopicStorePrefetch: org.apache.activemq.store.TopicMessageStore store>;
v = v.<org.apache.activemq.broker.region.cursors.TopicStorePrefetch: java.lang.String clientId>;
v = v.<org.apache.activemq.broker.region.cursors.TopicStorePrefetch: java.lang.String subscriberName>;
v = interfaceinvoke v.<org.apache.activemq.store.TopicMessageStore: int getMessageCount(java.lang.String,java.lang.String)>(v, v);
label:
return v;
label:
v := @caughtexception;
v = <org.apache.activemq.broker.region.cursors.TopicStorePrefetch: org.slf4j.Logger LOG>;
interfaceinvoke v.<org.slf4j.Logger: void error(java.lang.String,java.lang.Object,java.lang.Object)>("{} Failed to get the outstanding message count from the store", v, v);
v = new java.lang.RuntimeException;
specialinvoke v.<java.lang.RuntimeException: void <init>(java.lang.Throwable)>(v);
throw v;
catch java.lang.Exception from label to label with label;
}
protected synchronized long getStoreMessageSize()
{
org.slf4j.Logger v;
long v;
java.lang.RuntimeException v;
java.lang.Exception v;
org.apache.activemq.broker.region.cursors.TopicStorePrefetch v;
org.apache.activemq.store.TopicMessageStore v;
java.lang.String v, v;
v := @this: org.apache.activemq.broker.region.cursors.TopicStorePrefetch;
label:
v = v.<org.apache.activemq.broker.region.cursors.TopicStorePrefetch: org.apache.activemq.store.TopicMessageStore store>;
v = v.<org.apache.activemq.broker.region.cursors.TopicStorePrefetch: java.lang.String clientId>;
v = v.<org.apache.activemq.broker.region.cursors.TopicStorePrefetch: java.lang.String subscriberName>;
v = interfaceinvoke v.<org.apache.activemq.store.TopicMessageStore: long getMessageSize(java.lang.String,java.lang.String)>(v, v);
label:
return v;
label:
v := @caughtexception;
v = <org.apache.activemq.broker.region.cursors.TopicStorePrefetch: org.slf4j.Logger LOG>;
interfaceinvoke v.<org.slf4j.Logger: void error(java.lang.String,java.lang.Object,java.lang.Object)>("{} Failed to get the outstanding message count from the store", v, v);
v = new java.lang.RuntimeException;
specialinvoke v.<java.lang.RuntimeException: void <init>(java.lang.Throwable)>(v);
throw v;
catch java.lang.Exception from label to label with label;
}
protected synchronized boolean isStoreEmpty()
{
org.apache.activemq.store.TopicMessageStore v;
org.slf4j.Logger v;
java.lang.RuntimeException v;
java.lang.Exception v;
boolean v;
org.apache.activemq.broker.region.cursors.TopicStorePrefetch v;
v := @this: org.apache.activemq.broker.region.cursors.TopicStorePrefetch;
label:
v = v.<org.apache.activemq.broker.region.cursors.TopicStorePrefetch: org.apache.activemq.store.TopicMessageStore store>;
v = interfaceinvoke v.<org.apache.activemq.store.TopicMessageStore: boolean isEmpty()>();
label:
return v;
label:
v := @caughtexception;
v = <org.apache.activemq.broker.region.cursors.TopicStorePrefetch: org.slf4j.Logger LOG>;
interfaceinvoke v.<org.slf4j.Logger: void error(java.lang.String,java.lang.Throwable)>("Failed to determine if store is empty", v);
v = new java.lang.RuntimeException;
specialinvoke v.<java.lang.RuntimeException: void <init>(java.lang.Throwable)>(v);
throw v;
catch java.lang.Exception from label to label with label;
}
protected void resetBatch()
{
org.apache.activemq.store.TopicMessageStore v;
java.lang.String v, v;
org.apache.activemq.broker.region.cursors.TopicStorePrefetch v;
v := @this: org.apache.activemq.broker.region.cursors.TopicStorePrefetch;
v = v.<org.apache.activemq.broker.region.cursors.TopicStorePrefetch: org.apache.activemq.store.TopicMessageStore store>;
v = v.<org.apache.activemq.broker.region.cursors.TopicStorePrefetch: java.lang.String clientId>;
v = v.<org.apache.activemq.broker.region.cursors.TopicStorePrefetch: java.lang.String subscriberName>;
interfaceinvoke v.<org.apache.activemq.store.TopicMessageStore: void resetBatching(java.lang.String,java.lang.String)>(v, v);
return;
}
protected void doFillBatch() throws java.lang.Exception
{
org.apache.activemq.broker.region.cursors.PendingList v;
org.apache.activemq.broker.region.cursors.TopicStorePrefetch v;
org.apache.activemq.store.TopicMessageStore v;
int v;
java.lang.String v, v;
boolean v, v, v;
v := @this: org.apache.activemq.broker.region.cursors.TopicStorePrefetch;
v.<org.apache.activemq.broker.region.cursors.TopicStorePrefetch: boolean storeHasMessages> = 0;
v = v.<org.apache.activemq.broker.region.cursors.TopicStorePrefetch: org.apache.activemq.store.TopicMessageStore store>;
v = v.<org.apache.activemq.broker.region.cursors.TopicStorePrefetch: java.lang.String clientId>;
v = v.<org.apache.activemq.broker.region.cursors.TopicStorePrefetch: java.lang.String subscriberName>;
v = v.<org.apache.activemq.broker.region.cursors.TopicStorePrefetch: int maxBatchSize>;
interfaceinvoke v.<org.apache.activemq.store.TopicMessageStore: void recoverNextMessages(java.lang.String,java.lang.String,int,org.apache.activemq.store.MessageRecoveryListener)>(v, v, v, v);
virtualinvoke v.<org.apache.activemq.broker.region.cursors.TopicStorePrefetch: void dealWithDuplicates()>();
v = v.<org.apache.activemq.broker.region.cursors.TopicStorePrefetch: boolean storeHasMessages>;
if v != 0 goto label;
v = v.<org.apache.activemq.broker.region.cursors.TopicStorePrefetch: org.apache.activemq.broker.region.cursors.PendingList batchList>;
v = interfaceinvoke v.<org.apache.activemq.broker.region.cursors.PendingList: boolean isEmpty()>();
if v == 0 goto label;
v = v.<org.apache.activemq.broker.region.cursors.TopicStorePrefetch: boolean hadSpace>;
if v != 0 goto label;
label:
v.<org.apache.activemq.broker.region.cursors.TopicStorePrefetch: boolean storeHasMessages> = 1;
label:
return;
}
public byte getLastRecoveredPriority()
{
byte v;
org.apache.activemq.broker.region.cursors.TopicStorePrefetch v;
v := @this: org.apache.activemq.broker.region.cursors.TopicStorePrefetch;
v = v.<org.apache.activemq.broker.region.cursors.TopicStorePrefetch: byte lastRecoveredPriority>;
return v;
}
public final boolean isPaging()
{
org.apache.activemq.broker.region.cursors.PendingList v;
boolean v, v, v;
org.apache.activemq.broker.region.cursors.TopicStorePrefetch v;
v := @this: org.apache.activemq.broker.region.cursors.TopicStorePrefetch;
v = virtualinvoke v.<org.apache.activemq.broker.region.cursors.TopicStorePrefetch: boolean isCacheEnabled()>();
if v != 0 goto label;
v = v.<org.apache.activemq.broker.region.cursors.TopicStorePrefetch: org.apache.activemq.broker.region.cursors.PendingList batchList>;
v = interfaceinvoke v.<org.apache.activemq.broker.region.cursors.PendingList: boolean isEmpty()>();
if v != 0 goto label;
v = 1;
goto label;
label:
v = 0;
label:
return v;
}
public org.apache.activemq.broker.region.Subscription getSubscription()
{
org.apache.activemq.broker.region.Subscription v;
org.apache.activemq.broker.region.cursors.TopicStorePrefetch v;
v := @this: org.apache.activemq.broker.region.cursors.TopicStorePrefetch;
v = v.<org.apache.activemq.broker.region.cursors.TopicStorePrefetch: org.apache.activemq.broker.region.Subscription subscription>;
return v;
}
public java.lang.String toString()
{
org.apache.activemq.broker.region.Subscription v;
org.apache.activemq.command.ConsumerId v;
org.apache.activemq.broker.region.cursors.TopicStorePrefetch v;
java.lang.String v, v, v, v;
org.apache.activemq.command.ConsumerInfo v;
boolean v;
v := @this: org.apache.activemq.broker.region.cursors.TopicStorePrefetch;
v = v.<org.apache.activemq.broker.region.cursors.TopicStorePrefetch: java.lang.String clientId>;
v = v.<org.apache.activemq.broker.region.cursors.TopicStorePrefetch: java.lang.String subscriberName>;
v = v.<org.apache.activemq.broker.region.cursors.TopicStorePrefetch: boolean storeHasMessages>;
v = v.<org.apache.activemq.broker.region.cursors.TopicStorePrefetch: org.apache.activemq.broker.region.Subscription subscription>;
v = interfaceinvoke v.<org.apache.activemq.broker.region.Subscription: org.apache.activemq.command.ConsumerInfo getConsumerInfo()>();
v = virtualinvoke v.<org.apache.activemq.command.ConsumerInfo: org.apache.activemq.command.ConsumerId getConsumerId()>();
v = specialinvoke v.<org.apache.activemq.broker.region.cursors.AbstractStoreCursor: java.lang.String toString()>();
v = dynamicinvoke "makeConcatWithConstants" <java.lang.String (java.lang.String,java.lang.String,boolean,org.apache.activemq.command.ConsumerId,java.lang.String)>(v, v, 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[])>("TopicStorePrefetch(\u,\u,storeHasMessages=\u) \u - \u0001");
return v;
}
static void <clinit>()
{
org.slf4j.Logger v;
v = staticinvoke <org.slf4j.LoggerFactory: org.slf4j.Logger getLogger(java.lang.Class)>(class "Lorg/apache/activemq/broker/region/cursors/TopicStorePrefetch;");
<org.apache.activemq.broker.region.cursors.TopicStorePrefetch: org.slf4j.Logger LOG> = v;
return;
}
}