Interface CamelClusterView

All Superinterfaces:
AutoCloseable, CamelContextAware, HasCamelContext, Service
All Known Subinterfaces:
CamelPreemptiveClusterView

public interface CamelClusterView extends Service, CamelContextAware
Represents the View of the cluster at some given period of time.
  • Method Details

    • getClusterService

      CamelClusterService getClusterService()
      Returns:
      the cluster.
    • getNamespace

      String getNamespace()
      Returns:
      the namespace for this view.
    • getLeader

      Provides the leader member if elected.
      Returns:
      the leader member.
    • getLocalMember

      CamelClusterMember getLocalMember()
      Provides the local member.
      Returns:
      the local member.
    • getMembers

      List<CamelClusterMember> getMembers()
      Provides the list of members of the cluster.
      Returns:
      the list of members.
    • addEventListener

      void addEventListener(CamelClusterEventListener listener)
      Add an event listener.
      Parameters:
      listener - the event listener.
    • removeEventListener

      void removeEventListener(CamelClusterEventListener listener)
      Remove the event listener.
      Parameters:
      listener - the event listener.
    • unwrap

      default <T extends CamelClusterView> T unwrap(Class<T> clazz)
      Access the underlying concrete CamelClusterView implementation to provide access to further features.
      Parameters:
      clazz - the proprietary class or interface of the underlying concrete CamelClusterView.
      Returns:
      an instance of the underlying concrete CamelClusterView as the required type.