Package org.apache.camel.cluster
Interface CamelPreemptiveClusterService
- All Superinterfaces:
AutoCloseable,CamelClusterService,CamelContextAware,HasCamelContext,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, unwrapMethods inherited from interface org.apache.camel.CamelContextAware
setCamelContextMethods inherited from interface org.apache.camel.spi.HasCamelContext
getCamelContextMethods inherited from interface org.apache.camel.spi.IdAware
setGeneratedId, setId
-
Method Details
-
getView
Description copied from interface:CamelClusterServiceGet 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:
getViewin interfaceCamelClusterService- Parameters:
namespace- the namespace the view refer to.- Returns:
- the view.
- Throws:
Exception- if the view can't be created.
-