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 voidaddRoutes(org.apache.camel.RoutesBuilder builder) Sets a special list of properties that take precedence and will use first, if a property exist.default voidclose()default org.apache.camel.ExtendedCamelContextReturns the camel context adapting it to the specialized type.default org.apache.camel.spi.RegistryReturns the registry associated to this runtime.static Runtimeon(org.apache.camel.CamelContext camelContext) Helper to create a simple runtime from a given Camel Context.static Runtimeon(org.apache.camel.spi.HasCamelContext provider) Helper to create a simple runtime from a given Camel Context provider.default voidsetProperties(String key, String value, String... entries) Sets a special list of properties that take precedence and will use first, if a property exist.default voidsetProperties(Map<String, String> properties) Sets a special list of properties that take precedence and will use first, if a property exist.default voidsetProperties(Properties properties) Sets a special list of properties that take precedence and will use first, if a property exist.default voidstop()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:
closein 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
-