@ManagedResource(description="Managed FaultTolerance Processor")
public class FaultToleranceProcessor
extends org.apache.camel.support.AsyncProcessorSupport
implements org.apache.camel.CamelContextAware, org.apache.camel.Navigate<org.apache.camel.Processor>, org.apache.camel.Traceable, org.apache.camel.spi.IdAware
| Constructor and Description |
|---|
FaultToleranceProcessor(FaultToleranceConfiguration config,
org.apache.camel.Processor processor,
org.apache.camel.Processor fallbackProcessor) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
doInit() |
protected void |
doStart() |
protected void |
doStop() |
int |
getBulkheadMaxConcurrentCalls() |
int |
getBulkheadWaitingTaskQueue() |
org.apache.camel.CamelContext |
getCamelContext() |
io.smallrye.faulttolerance.core.circuit.breaker.CircuitBreaker |
getCircuitBreaker() |
long |
getDelay() |
ExecutorService |
getExecutorService() |
float |
getFailureRate() |
String |
getId() |
int |
getRequestVolumeThreshold() |
int |
getSuccessThreshold() |
long |
getTimeoutDuration() |
int |
getTimeoutPoolSize() |
String |
getTraceLabel() |
boolean |
hasNext() |
boolean |
isBulkheadEnabled() |
boolean |
isShutdownExecutorService() |
boolean |
isTimeoutEnabled() |
List<org.apache.camel.Processor> |
next() |
boolean |
process(org.apache.camel.Exchange exchange,
org.apache.camel.AsyncCallback callback) |
void |
setCamelContext(org.apache.camel.CamelContext camelContext) |
void |
setCircuitBreaker(io.smallrye.faulttolerance.core.circuit.breaker.CircuitBreaker circuitBreaker) |
void |
setExecutorService(ExecutorService executorService) |
void |
setId(String id) |
void |
setShutdownExecutorService(boolean shutdownExecutorService) |
build, doBuild, doFail, doLifecycleChange, doResume, doShutdown, doSuspend, fail, getStatus, init, isBuild, isInit, isNew, isRunAllowed, isShutdown, isStarted, isStarting, isStartingOrStarted, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, isSuspendingOrSuspended, resume, shutdown, start, stop, suspendclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpublic FaultToleranceProcessor(FaultToleranceConfiguration config, org.apache.camel.Processor processor, org.apache.camel.Processor fallbackProcessor)
public org.apache.camel.CamelContext getCamelContext()
getCamelContext in interface org.apache.camel.CamelContextAwarepublic void setCamelContext(org.apache.camel.CamelContext camelContext)
setCamelContext in interface org.apache.camel.CamelContextAwarepublic String getId()
getId in interface org.apache.camel.spi.HasIdpublic void setId(String id)
setId in interface org.apache.camel.spi.IdAwarepublic io.smallrye.faulttolerance.core.circuit.breaker.CircuitBreaker getCircuitBreaker()
public void setCircuitBreaker(io.smallrye.faulttolerance.core.circuit.breaker.CircuitBreaker circuitBreaker)
public boolean isShutdownExecutorService()
public void setShutdownExecutorService(boolean shutdownExecutorService)
public ExecutorService getExecutorService()
public void setExecutorService(ExecutorService executorService)
public String getTraceLabel()
getTraceLabel in interface org.apache.camel.Traceable@ManagedAttribute(description="Returns the current delay in milliseconds.") public long getDelay()
@ManagedAttribute(description="Returns the current failure rate in percentage.") public float getFailureRate()
@ManagedAttribute(description="Returns the current request volume threshold.") public int getRequestVolumeThreshold()
@ManagedAttribute(description="Returns the current success threshold.") public int getSuccessThreshold()
@ManagedAttribute(description="Is timeout enabled") public boolean isTimeoutEnabled()
@ManagedAttribute(description="The timeout wait duration") public long getTimeoutDuration()
@ManagedAttribute(description="The timeout pool size for the thread pool") public int getTimeoutPoolSize()
@ManagedAttribute(description="Is bulkhead enabled") public boolean isBulkheadEnabled()
@ManagedAttribute(description="The max amount of concurrent calls the bulkhead will support.") public int getBulkheadMaxConcurrentCalls()
@ManagedAttribute(description="The task queue size for holding waiting tasks to be processed by the bulkhead") public int getBulkheadWaitingTaskQueue()
public List<org.apache.camel.Processor> next()
next in interface org.apache.camel.Navigate<org.apache.camel.Processor>public boolean hasNext()
hasNext in interface org.apache.camel.Navigate<org.apache.camel.Processor>public boolean process(org.apache.camel.Exchange exchange,
org.apache.camel.AsyncCallback callback)
process in interface org.apache.camel.AsyncProcessorprotected void doInit()
throws Exception
doInit in class org.apache.camel.support.service.BaseServiceExceptionprotected void doStart()
throws Exception
doStart in class org.apache.camel.support.AsyncProcessorSupportExceptionApache Camel