Package org.apache.camel.k
Interface Runtime
-
- All Superinterfaces:
AutoCloseable
,org.apache.camel.spi.HasCamelContext
- All Known Implementing Classes:
DelegatingRuntime
public interface Runtime extends org.apache.camel.spi.HasCamelContext, AutoCloseable
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interface
Runtime.Listener
static class
Runtime.Phase
-
Method Summary
All Methods Static Methods Instance Methods Default Methods Modifier and Type Method Description default void
addRoutes(org.apache.camel.RoutesBuilder builder)
default void
close()
default <T extends org.apache.camel.CamelContext>
TgetCamelContext(Class<T> type)
default org.apache.camel.spi.Registry
getRegistry()
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
setInitialProperties(String key, String value, String... keyVals)
default void
setInitialProperties(Map<String,String> properties)
default void
setInitialProperties(Properties properties)
default void
setProperties(String key, String value, String... keyVals)
default void
setProperties(Map<String,String> properties)
default void
setProperties(Properties properties)
default void
setPropertiesLocations(String... locations)
default void
setPropertiesLocations(Collection<String> locations)
default void
stop()
Lifecycle method used to stops the entire integration.
-
-
-
Method Detail
-
getCamelContext
default <T extends org.apache.camel.CamelContext> T getCamelContext(Class<T> type)
-
getRegistry
default org.apache.camel.spi.Registry getRegistry()
Returns the registry associated to this runtime.
-
setInitialProperties
default void setInitialProperties(Properties properties)
-
setInitialProperties
default void setInitialProperties(String key, String value, String... keyVals)
-
setProperties
default void setProperties(Properties properties)
-
addRoutes
default void addRoutes(org.apache.camel.RoutesBuilder builder)
-
setPropertiesLocations
default void setPropertiesLocations(Collection<String> locations)
-
setPropertiesLocations
default void setPropertiesLocations(String... locations)
-
stop
default void stop() throws Exception
Lifecycle method used to stops the entire integration.- Throws:
Exception
-
close
default void close() throws Exception
- Specified by:
close
in interfaceAutoCloseable
- Throws:
Exception
-
on
static Runtime on(org.apache.camel.CamelContext camelContext)
Helper to create a simple runtime from a given Camel Context.- Parameters:
camelContext
- the camel context- Returns:
- the runtime
-
on
static Runtime on(org.apache.camel.spi.HasCamelContext provider)
Helper to create a simple runtime from a given Camel Context provider.- Parameters:
provider
- the camel context provider- Returns:
- the runtime
-
-