Package org.apache.camel.k
Interface Runtime
- All Superinterfaces:
AutoCloseable
,org.apache.camel.spi.HasCamelContext
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptiondefault void
addRoutes
(org.apache.camel.RoutesBuilder builder) Sets a special list of properties that take precedence and will use first, if a property exist.default void
close()
default org.apache.camel.ExtendedCamelContext
Returns the camel context adapting it to the specialized type.default org.apache.camel.spi.Registry
Returns the registry associated to this runtime.static Runtime
on
(org.apache.camel.CamelContext camelContext) Helper to create a simple runtime from a given Camel Context.static Runtime
on
(org.apache.camel.spi.HasCamelContext provider) Helper to create a simple runtime from a given Camel Context provider.default void
setProperties
(String key, String value, String... entries) Sets a special list of properties that take precedence and will use first, if a property exist.default void
setProperties
(Map<String, String> properties) Sets a special list of properties that take precedence and will use first, if a property exist.default void
setProperties
(Properties properties) Sets a special list of properties that take precedence and will use first, if a property exist.default void
stop()
Lifecycle method used to stops the entire integration.Methods inherited from interface org.apache.camel.spi.HasCamelContext
getCamelContext
-
Method Details
-
getExtendedCamelContext
default org.apache.camel.ExtendedCamelContext getExtendedCamelContext()Returns the camel context adapting it to the specialized type.- Returns:
- the extended camel context.
- See Also:
-
HasCamelContext.getCamelContext()
-
getRegistry
default org.apache.camel.spi.Registry getRegistry()Returns the registry associated to this runtime. -
setProperties
Sets a special list of properties that take precedence and will use first, if a property exist.- Parameters:
properties
- the properties to set- See Also:
-
PropertiesComponent.setOverrideProperties(Properties)
-
setProperties
Sets a special list of properties that take precedence and will use first, if a property exist.- Parameters:
properties
- the properties to set- See Also:
-
PropertiesComponent.setOverrideProperties(Properties)
-
setProperties
Sets a special list of properties that take precedence and will use first, if a property exist.- Parameters:
key
- the mapping's keyvalue
- the mapping's valueentries
- containing the keys and values from which the map is populated- See Also:
-
PropertiesComponent.setOverrideProperties(Properties)
-
addRoutes
default void addRoutes(org.apache.camel.RoutesBuilder builder) Sets a special list of properties that take precedence and will use first, if a property exist.- Parameters:
builder
- the builder which will create the routes- See Also:
-
PropertiesComponent.setOverrideProperties(Properties)
-
stop
Lifecycle method used to stops the entire integration.- Throws:
Exception
-
close
- Specified by:
close
in interfaceAutoCloseable
- Throws:
Exception
-
on
Helper to create a simple runtime from a given Camel Context.- Parameters:
camelContext
- the camel context- Returns:
- the runtime
-
on
Helper to create a simple runtime from a given Camel Context provider.- Parameters:
provider
- the camel context provider- Returns:
- the runtime
-