Package org.apache.camel.cluster
Interface CamelPreemptiveClusterService
-
- All Superinterfaces:
AutoCloseable
,CamelClusterService
,CamelContextAware
,HasId
,IdAware
,Ordered
,Service
public interface CamelPreemptiveClusterService extends CamelClusterService
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.camel.cluster.CamelClusterService
CamelClusterService.Selector
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description CamelPreemptiveClusterView
getView(String namespace)
Get 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 Detail
-
getView
CamelPreemptiveClusterView getView(String namespace) throws Exception
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.
-
-