java.lang.Object
org.springframework.cloud.kubernetes.commons.leader.LeaderContext
All Implemented Interfaces:
org.springframework.integration.leader.Context

public class LeaderContext extends Object implements org.springframework.integration.leader.Context
Author:
Gytis Trikleris
  • Constructor Details

    • LeaderContext

      public LeaderContext(org.springframework.integration.leader.Candidate candidate, LeadershipController leadershipController)
  • Method Details

    • isLeader

      public boolean isLeader()
      Specified by:
      isLeader in interface org.springframework.integration.leader.Context
    • yield

      public void yield()
      Specified by:
      yield in interface org.springframework.integration.leader.Context