public interface CamelClusterView extends Service, CamelContextAware
Modifier and Type | Method and Description |
---|---|
void |
addEventListener(CamelClusterEventListener listener)
Add an event listener.
|
CamelClusterService |
getClusterService() |
Optional<CamelClusterMember> |
getLeader()
Provides the leader member if elected.
|
CamelClusterMember |
getLocalMember()
Provides the local member.
|
default Optional<CamelClusterMember> |
getMaster()
Deprecated.
use
getLeader() |
List<CamelClusterMember> |
getMembers()
Provides the list of members of the cluster.
|
String |
getNamespace() |
void |
removeEventListener(CamelClusterEventListener listener)
Remove the event listener.
|
default <T extends CamelClusterView> |
unwrap(Class<T> clazz)
Access the underlying concrete CamelClusterView implementation to
provide access to further features.
|
getCamelContext, setCamelContext
CamelClusterService getClusterService()
String getNamespace()
@Deprecated default Optional<CamelClusterMember> getMaster()
getLeader()
Optional<CamelClusterMember> getLeader()
CamelClusterMember getLocalMember()
List<CamelClusterMember> getMembers()
void addEventListener(CamelClusterEventListener listener)
listener
- the event listener.void removeEventListener(CamelClusterEventListener listener)
listener
- the event listener.default <T extends CamelClusterView> T unwrap(Class<T> clazz)
clazz
- the proprietary class or interface of the underlying concrete CamelClusterView.Apache Camel