public class org.apache.camel.processor.OnCompletionProcessor extends org.apache.camel.support.ServiceSupport implements org.apache.camel.AsyncProcessor, org.apache.camel.Traceable, org.apache.camel.spi.IdAware
{
private static final org.slf4j.Logger LOG;
private final org.apache.camel.CamelContext camelContext;
private java.lang.String id;
private final org.apache.camel.Processor processor;
private final java.util.concurrent.ExecutorService executorService;
private final boolean shutdownExecutorService;
private final boolean onCompleteOnly;
private final boolean onFailureOnly;
private final org.apache.camel.Predicate onWhen;
private final boolean useOriginalBody;
private final boolean afterConsumer;
public void <init>(org.apache.camel.CamelContext, org.apache.camel.Processor, java.util.concurrent.ExecutorService, boolean, boolean, boolean, org.apache.camel.Predicate, boolean, boolean)
{
org.apache.camel.CamelContext v;
org.apache.camel.Processor v;
org.apache.camel.processor.OnCompletionProcessor v;
org.apache.camel.Predicate v;
java.util.concurrent.ExecutorService v;
boolean v, v, v, v, v;
v := @this: org.apache.camel.processor.OnCompletionProcessor;
v := @parameter: org.apache.camel.CamelContext;
v := @parameter: org.apache.camel.Processor;
v := @parameter: java.util.concurrent.ExecutorService;
v := @parameter: boolean;
v := @parameter: boolean;
v := @parameter: boolean;
v := @parameter: org.apache.camel.Predicate;
v := @parameter: boolean;
v := @parameter: boolean;
specialinvoke v.<org.apache.camel.support.ServiceSupport: void <init>()>();
staticinvoke <org.apache.camel.util.ObjectHelper: java.lang.Object notNull(java.lang.Object,java.lang.String)>(v, "camelContext");
staticinvoke <org.apache.camel.util.ObjectHelper: java.lang.Object notNull(java.lang.Object,java.lang.String)>(v, "processor");
v.<org.apache.camel.processor.OnCompletionProcessor: org.apache.camel.CamelContext camelContext> = v;
v.<org.apache.camel.processor.OnCompletionProcessor: org.apache.camel.Processor processor> = v;
v.<org.apache.camel.processor.OnCompletionProcessor: java.util.concurrent.ExecutorService executorService> = v;
v.<org.apache.camel.processor.OnCompletionProcessor: boolean shutdownExecutorService> = v;
v.<org.apache.camel.processor.OnCompletionProcessor: boolean onCompleteOnly> = v;
v.<org.apache.camel.processor.OnCompletionProcessor: boolean onFailureOnly> = v;
v.<org.apache.camel.processor.OnCompletionProcessor: org.apache.camel.Predicate onWhen> = v;
v.<org.apache.camel.processor.OnCompletionProcessor: boolean useOriginalBody> = v;
v.<org.apache.camel.processor.OnCompletionProcessor: boolean afterConsumer> = v;
return;
}
protected void doStart() throws java.lang.Exception
{
org.apache.camel.Processor v;
org.apache.camel.processor.OnCompletionProcessor v;
v := @this: org.apache.camel.processor.OnCompletionProcessor;
v = v.<org.apache.camel.processor.OnCompletionProcessor: org.apache.camel.Processor processor>;
staticinvoke <org.apache.camel.util.ServiceHelper: void startService(java.lang.Object)>(v);
return;
}
protected void doStop() throws java.lang.Exception
{
org.apache.camel.Processor v;
org.apache.camel.processor.OnCompletionProcessor v;
v := @this: org.apache.camel.processor.OnCompletionProcessor;
v = v.<org.apache.camel.processor.OnCompletionProcessor: org.apache.camel.Processor processor>;
staticinvoke <org.apache.camel.util.ServiceHelper: void stopService(java.lang.Object)>(v);
return;
}
protected void doShutdown() throws java.lang.Exception
{
org.apache.camel.CamelContext v;
org.apache.camel.Processor v;
org.apache.camel.processor.OnCompletionProcessor v;
org.apache.camel.spi.ExecutorServiceManager v;
java.util.concurrent.ExecutorService v;
boolean v;
v := @this: org.apache.camel.processor.OnCompletionProcessor;
v = v.<org.apache.camel.processor.OnCompletionProcessor: org.apache.camel.Processor processor>;
staticinvoke <org.apache.camel.util.ServiceHelper: void stopAndShutdownService(java.lang.Object)>(v);
v = v.<org.apache.camel.processor.OnCompletionProcessor: boolean shutdownExecutorService>;
if v == 0 goto label;
v = virtualinvoke v.<org.apache.camel.processor.OnCompletionProcessor: org.apache.camel.CamelContext getCamelContext()>();
v = interfaceinvoke v.<org.apache.camel.CamelContext: org.apache.camel.spi.ExecutorServiceManager getExecutorServiceManager()>();
v = v.<org.apache.camel.processor.OnCompletionProcessor: java.util.concurrent.ExecutorService executorService>;
interfaceinvoke v.<org.apache.camel.spi.ExecutorServiceManager: java.util.List shutdownNow(java.util.concurrent.ExecutorService)>(v);
label:
return;
}
public org.apache.camel.CamelContext getCamelContext()
{
org.apache.camel.CamelContext v;
org.apache.camel.processor.OnCompletionProcessor v;
v := @this: org.apache.camel.processor.OnCompletionProcessor;
v = v.<org.apache.camel.processor.OnCompletionProcessor: org.apache.camel.CamelContext camelContext>;
return v;
}
public java.lang.String getId()
{
org.apache.camel.processor.OnCompletionProcessor v;
java.lang.String v;
v := @this: org.apache.camel.processor.OnCompletionProcessor;
v = v.<org.apache.camel.processor.OnCompletionProcessor: java.lang.String id>;
return v;
}
public void setId(java.lang.String)
{
org.apache.camel.processor.OnCompletionProcessor v;
java.lang.String v;
v := @this: org.apache.camel.processor.OnCompletionProcessor;
v := @parameter: java.lang.String;
v.<org.apache.camel.processor.OnCompletionProcessor: java.lang.String id> = v;
return;
}
public void process(org.apache.camel.Exchange) throws java.lang.Exception
{
org.apache.camel.processor.OnCompletionProcessor v;
org.apache.camel.Exchange v;
v := @this: org.apache.camel.processor.OnCompletionProcessor;
v := @parameter: org.apache.camel.Exchange;
staticinvoke <org.apache.camel.util.AsyncProcessorHelper: void process(org.apache.camel.AsyncProcessor,org.apache.camel.Exchange)>(v, v);
return;
}
public boolean process(org.apache.camel.Exchange, org.apache.camel.AsyncCallback)
{
org.apache.camel.processor.OnCompletionProcessor$OnCompletionSynchronizationAfterConsumer v;
org.apache.camel.spi.UnitOfWork v, v;
org.apache.camel.AsyncCallback v;
org.apache.camel.Exchange v;
org.apache.camel.Processor v;
org.apache.camel.processor.OnCompletionProcessor v;
org.apache.camel.processor.OnCompletionProcessor$OnCompletionSynchronizationBeforeConsumer v;
boolean v;
v := @this: org.apache.camel.processor.OnCompletionProcessor;
v := @parameter: org.apache.camel.Exchange;
v := @parameter: org.apache.camel.AsyncCallback;
v = v.<org.apache.camel.processor.OnCompletionProcessor: org.apache.camel.Processor processor>;
if v == null goto label;
v = v.<org.apache.camel.processor.OnCompletionProcessor: boolean afterConsumer>;
if v == 0 goto label;
v = interfaceinvoke v.<org.apache.camel.Exchange: org.apache.camel.spi.UnitOfWork getUnitOfWork()>();
v = new org.apache.camel.processor.OnCompletionProcessor$OnCompletionSynchronizationAfterConsumer;
specialinvoke v.<org.apache.camel.processor.OnCompletionProcessor$OnCompletionSynchronizationAfterConsumer: void <init>(org.apache.camel.processor.OnCompletionProcessor)>(v);
interfaceinvoke v.<org.apache.camel.spi.UnitOfWork: void addSynchronization(org.apache.camel.spi.Synchronization)>(v);
goto label;
label:
v = interfaceinvoke v.<org.apache.camel.Exchange: org.apache.camel.spi.UnitOfWork getUnitOfWork()>();
v = new org.apache.camel.processor.OnCompletionProcessor$OnCompletionSynchronizationBeforeConsumer;
specialinvoke v.<org.apache.camel.processor.OnCompletionProcessor$OnCompletionSynchronizationBeforeConsumer: void <init>(org.apache.camel.processor.OnCompletionProcessor)>(v);
interfaceinvoke v.<org.apache.camel.spi.UnitOfWork: void addSynchronization(org.apache.camel.spi.Synchronization)>(v);
label:
interfaceinvoke v.<org.apache.camel.AsyncCallback: void done(boolean)>(1);
return 1;
}
protected boolean isCreateCopy()
{
org.apache.camel.processor.OnCompletionProcessor v;
java.util.concurrent.ExecutorService v;
boolean v, v;
v := @this: org.apache.camel.processor.OnCompletionProcessor;
v = v.<org.apache.camel.processor.OnCompletionProcessor: java.util.concurrent.ExecutorService executorService>;
if v != null goto label;
v = v.<org.apache.camel.processor.OnCompletionProcessor: boolean afterConsumer>;
if v == 0 goto label;
label:
v = 1;
goto label;
label:
v = 0;
label:
return v;
}
protected static void doProcess(org.apache.camel.Processor, org.apache.camel.Exchange)
{
java.lang.Throwable v;
org.apache.camel.Exchange v;
java.lang.Exception v, v;
org.apache.camel.Processor v;
java.lang.Object v, v, v, v, v, v;
v := @parameter: org.apache.camel.Processor;
v := @parameter: org.apache.camel.Exchange;
v = interfaceinvoke v.<org.apache.camel.Exchange: java.lang.Object removeProperty(java.lang.String)>("CamelRouteStop");
v = interfaceinvoke v.<org.apache.camel.Exchange: java.lang.Object removeProperty(java.lang.String)>("CamelFailureHandled");
v = interfaceinvoke v.<org.apache.camel.Exchange: java.lang.Object removeProperty(java.lang.String)>("CamelErrorHandlerHandled");
v = interfaceinvoke v.<org.apache.camel.Exchange: java.lang.Object removeProperty(java.lang.String)>("CamelRollbackOnly");
v = interfaceinvoke v.<org.apache.camel.Exchange: java.lang.Object removeProperty(java.lang.String)>("CamelRollbackOnlyLast");
v = interfaceinvoke v.<org.apache.camel.Exchange: java.lang.Object removeProperty(java.lang.String)>("CamelRedeliveryExhausted");
v = interfaceinvoke v.<org.apache.camel.Exchange: java.lang.Exception getException()>();
interfaceinvoke v.<org.apache.camel.Exchange: void setException(java.lang.Throwable)>(null);
label:
interfaceinvoke v.<org.apache.camel.Processor: void process(org.apache.camel.Exchange)>(v);
label:
if v == null goto label;
interfaceinvoke v.<org.apache.camel.Exchange: void setProperty(java.lang.String,java.lang.Object)>("CamelRouteStop", v);
label:
if v == null goto label;
interfaceinvoke v.<org.apache.camel.Exchange: void setProperty(java.lang.String,java.lang.Object)>("CamelFailureHandled", v);
label:
if v == null goto label;
interfaceinvoke v.<org.apache.camel.Exchange: void setProperty(java.lang.String,java.lang.Object)>("CamelErrorHandlerHandled", v);
label:
if v == null goto label;
interfaceinvoke v.<org.apache.camel.Exchange: void setProperty(java.lang.String,java.lang.Object)>("CamelRollbackOnly", v);
label:
if v == null goto label;
interfaceinvoke v.<org.apache.camel.Exchange: void setProperty(java.lang.String,java.lang.Object)>("CamelRollbackOnlyLast", v);
label:
if v == null goto label;
interfaceinvoke v.<org.apache.camel.Exchange: void setProperty(java.lang.String,java.lang.Object)>("CamelRedeliveryExhausted", v);
label:
if v == null goto label;
interfaceinvoke v.<org.apache.camel.Exchange: void setException(java.lang.Throwable)>(v);
goto label;
label:
v := @caughtexception;
interfaceinvoke v.<org.apache.camel.Exchange: void setException(java.lang.Throwable)>(v);
label:
if v == null goto label;
interfaceinvoke v.<org.apache.camel.Exchange: void setProperty(java.lang.String,java.lang.Object)>("CamelRouteStop", v);
label:
if v == null goto label;
interfaceinvoke v.<org.apache.camel.Exchange: void setProperty(java.lang.String,java.lang.Object)>("CamelFailureHandled", v);
label:
if v == null goto label;
interfaceinvoke v.<org.apache.camel.Exchange: void setProperty(java.lang.String,java.lang.Object)>("CamelErrorHandlerHandled", v);
label:
if v == null goto label;
interfaceinvoke v.<org.apache.camel.Exchange: void setProperty(java.lang.String,java.lang.Object)>("CamelRollbackOnly", v);
label:
if v == null goto label;
interfaceinvoke v.<org.apache.camel.Exchange: void setProperty(java.lang.String,java.lang.Object)>("CamelRollbackOnlyLast", v);
label:
if v == null goto label;
interfaceinvoke v.<org.apache.camel.Exchange: void setProperty(java.lang.String,java.lang.Object)>("CamelRedeliveryExhausted", v);
label:
if v == null goto label;
interfaceinvoke v.<org.apache.camel.Exchange: void setException(java.lang.Throwable)>(v);
goto label;
label:
v := @caughtexception;
if v == null goto label;
interfaceinvoke v.<org.apache.camel.Exchange: void setProperty(java.lang.String,java.lang.Object)>("CamelRouteStop", v);
label:
if v == null goto label;
interfaceinvoke v.<org.apache.camel.Exchange: void setProperty(java.lang.String,java.lang.Object)>("CamelFailureHandled", v);
label:
if v == null goto label;
interfaceinvoke v.<org.apache.camel.Exchange: void setProperty(java.lang.String,java.lang.Object)>("CamelErrorHandlerHandled", v);
label:
if v == null goto label;
interfaceinvoke v.<org.apache.camel.Exchange: void setProperty(java.lang.String,java.lang.Object)>("CamelRollbackOnly", v);
label:
if v == null goto label;
interfaceinvoke v.<org.apache.camel.Exchange: void setProperty(java.lang.String,java.lang.Object)>("CamelRollbackOnlyLast", v);
label:
if v == null goto label;
interfaceinvoke v.<org.apache.camel.Exchange: void setProperty(java.lang.String,java.lang.Object)>("CamelRedeliveryExhausted", v);
label:
if v == null goto label;
interfaceinvoke v.<org.apache.camel.Exchange: void setException(java.lang.Throwable)>(v);
label:
throw v;
label:
return;
catch java.lang.Exception from label to label with label;
catch java.lang.Throwable from label to label with label;
catch java.lang.Throwable from label to label with label;
}
protected org.apache.camel.Exchange prepareExchange(org.apache.camel.Exchange)
{
org.slf4j.Logger v;
org.apache.camel.Message v, v;
org.apache.camel.Exchange v, v;
org.apache.camel.processor.OnCompletionProcessor v;
java.lang.Boolean v;
boolean v, v, v;
org.apache.camel.ExchangePattern v;
v := @this: org.apache.camel.processor.OnCompletionProcessor;
v := @parameter: org.apache.camel.Exchange;
v = virtualinvoke v.<org.apache.camel.processor.OnCompletionProcessor: boolean isCreateCopy()>();
if v == 0 goto label;
v = staticinvoke <org.apache.camel.util.ExchangeHelper: org.apache.camel.Exchange createCorrelatedCopy(org.apache.camel.Exchange,boolean)>(v, 0);
v = interfaceinvoke v.<org.apache.camel.Exchange: boolean hasOut()>();
if v == 0 goto label;
v = interfaceinvoke v.<org.apache.camel.Exchange: org.apache.camel.Message getOut()>();
interfaceinvoke v.<org.apache.camel.Exchange: void setIn(org.apache.camel.Message)>(v);
interfaceinvoke v.<org.apache.camel.Exchange: void setOut(org.apache.camel.Message)>(null);
label:
v = <org.apache.camel.ExchangePattern: org.apache.camel.ExchangePattern InOnly>;
interfaceinvoke v.<org.apache.camel.Exchange: void setPattern(org.apache.camel.ExchangePattern)>(v);
goto label;
label:
v = v;
label:
v = v.<org.apache.camel.processor.OnCompletionProcessor: boolean useOriginalBody>;
if v == 0 goto label;
v = <org.apache.camel.processor.OnCompletionProcessor: org.slf4j.Logger LOG>;
interfaceinvoke v.<org.slf4j.Logger: void trace(java.lang.String)>("Using the original IN message instead of current");
v = staticinvoke <org.apache.camel.util.ExchangeHelper: org.apache.camel.Message getOriginalInMessage(org.apache.camel.Exchange)>(v);
interfaceinvoke v.<org.apache.camel.Exchange: void setIn(org.apache.camel.Message)>(v);
label:
v = <java.lang.Boolean: java.lang.Boolean TRUE>;
interfaceinvoke v.<org.apache.camel.Exchange: void setProperty(java.lang.String,java.lang.Object)>("CamelOnCompletion", v);
return v;
}
public java.lang.String toString()
{
org.apache.camel.Processor v;
org.apache.camel.processor.OnCompletionProcessor v;
java.lang.String v;
v := @this: org.apache.camel.processor.OnCompletionProcessor;
v = v.<org.apache.camel.processor.OnCompletionProcessor: org.apache.camel.Processor processor>;
v = dynamicinvoke "makeConcatWithConstants" <java.lang.String (org.apache.camel.Processor)>(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[])>("OnCompletionProcessor[\u]");
return v;
}
public java.lang.String getTraceLabel()
{
org.apache.camel.processor.OnCompletionProcessor v;
v := @this: org.apache.camel.processor.OnCompletionProcessor;
return "onCompletion";
}
static void <clinit>()
{
org.slf4j.Logger v;
v = staticinvoke <org.slf4j.LoggerFactory: org.slf4j.Logger getLogger(java.lang.Class)>(class "Lorg/apache/camel/processor/OnCompletionProcessor;");
<org.apache.camel.processor.OnCompletionProcessor: org.slf4j.Logger LOG> = v;
return;
}
}