Resume Trait

The Resume trait can be used to manage and configure resume strategies.

This feature is meant to allow quick resume of processing by Camel K instances after they have been restarted.

this is an experimental implementation based on the support available on Camel Core resume strategies.

The Resume trait is disabled by default.

The main different from the implementation on Core is that it’s not necessary to bind the strategies to the registry. This step will be done automatically by Camel K, after resolving the options passed to the trait.

A sample execution of this trait, using the Kafka backend (the only one supported at the moment), would require the following trait options: -t resume.enabled=true -t resume.resume-path=camel-file-sets -t resume.resume-server="address-of-your-kafka:9092"

This trait is available in the following profiles: Kubernetes, Knative, OpenShift.

Configuration

Trait properties can be specified when running any integration with the CLI:

$ kamel run --trait resume.[key]=[value] --trait resume.[key2]=[value2] integration.yaml

The following configuration options are available:

Property Type Description

resume.enabled

bool

Can be used to enable or disable a trait. All traits share this common property.

resume.auto

bool

Enables automatic configuration of the trait. Deprecated: not in use.

resume.resume-strategy,omitempty

string

The type of the resume strategy to use

resume.resume-path,omitempty

string

The path used by the resume strategy (this is specific to the resume strategy type)

resume.resume-server,omitempty

string

The address of the resume server to use (protocol / implementation specific)

resume.cache-fill-policy,omitempty

string

The adapter-specific policy to use when filling the cache (use: minimizing / maximizing). Check the component documentation if unsure