Package org.apache.camel.cluster
Interface CamelPreemptiveClusterService
- All Superinterfaces:
AutoCloseable
,CamelClusterService
,CamelContextAware
,HasId
,IdAware
,Ordered
,Service
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.camel.cluster.CamelClusterService
CamelClusterService.Selector
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet a view of the cluster bound to a namespace creating it if needed.Methods inherited from interface org.apache.camel.cluster.CamelClusterService
getAttributes, getNamespaces, getOrder, isLeader, releaseView, startView, stopView, unwrap
Methods inherited from interface org.apache.camel.CamelContextAware
getCamelContext, setCamelContext
Methods inherited from interface org.apache.camel.spi.IdAware
setGeneratedId, setId
-
Method Details
-
getView
Description copied from interface:CamelClusterService
Get a view of the cluster bound to a namespace creating it if needed. Multiple calls to this method with the same namespace should return the same instance. The instance is automatically started the first time it is instantiated and if the cluster service is ready.- Specified by:
getView
in interfaceCamelClusterService
- Parameters:
namespace
- the namespace the view refer to.- Returns:
- the view.
- Throws:
Exception
- if the view can't be created.
-