Interface ILeaseManagerConfig

  • All Known Implementing Classes:
    LeaseManagerConfig

    public interface ILeaseManagerConfig
    Provides configuration items used by the LeaseManager
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      java.lang.String getHost()
      Get the hostname used to help identify which instant currently owns a lease
      int getLeaseTimeSeconds()
      The number of seconds each lease is held for.
      boolean stayAlive()
      Flag to indicate we want the LeaseManager to stay alive without requiring regular heartbeats
    • Method Detail

      • getLeaseTimeSeconds

        int getLeaseTimeSeconds()
        The number of seconds each lease is held for. The LeaseManager holding a lease will renew that lease periodically as long as it receives a heartbeat call within lease-time-seconds / 2.
        Returns:
      • getHost

        java.lang.String getHost()
        Get the hostname used to help identify which instant currently owns a lease
        Returns:
      • stayAlive

        boolean stayAlive()
        Flag to indicate we want the LeaseManager to stay alive without requiring regular heartbeats
        Returns: