public class ComponentUnavailableActionStopCamelContext extends Object implements org.gytheio.health.ComponentUnavailableAction
| Modifier and Type | Class and Description |
|---|---|
class |
ComponentUnavailableActionStopCamelContext.StopContextRunnable
Runnable which stops the Camel context.
|
| Constructor and Description |
|---|
ComponentUnavailableActionStopCamelContext() |
| Modifier and Type | Method and Description |
|---|---|
void |
execute(Throwable e) |
void |
setCamelContext(org.apache.camel.CamelContext camelContext)
Sets the Camel context to be stopped
|
void |
setShutdownGracePeriodSeconds(long shutdownGracePeriodSeconds)
Sets the time to allow Camel to gracefully wrap up shutdown before forcing.
|
void |
setSpawnNewThread(boolean spawnNewThread)
Sets whether or not to execute the shutdown in a new thread.
|
public ComponentUnavailableActionStopCamelContext()
public void setShutdownGracePeriodSeconds(long shutdownGracePeriodSeconds)
shutdownGracePeriodSeconds - public void setCamelContext(org.apache.camel.CamelContext camelContext)
camelContext - public void setSpawnNewThread(boolean spawnNewThread)
If we initiate the stop in another thread Camel / ActiveMQ's default behavior will rollback the transaction and put it in a DLQ.
If we initiate the stop in this thread Camel / ActiveMQ's default behavior will return the message to it's place in the queue.
spawnNewThread - public void execute(Throwable e)
execute in interface org.gytheio.health.ComponentUnavailableActionCopyright © 2018 Alfresco Software. All rights reserved.