Interface LeaseManager<T>

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      boolean cancel​(java.lang.String appName, java.lang.String id, boolean isReplication)
      Cancel the Lease associated w/ the passed in appName and id.
      void evict()
      Evict LeaseManagers with expired Lease(s).
      void register​(T r, int leaseDuration, boolean isReplication)
      Assign a new Lease to the passed in LeaseManager.
      boolean renew​(java.lang.String appName, java.lang.String id, boolean isReplication)
      Renew the Lease associated w/ the passed in appName and id.
    • Method Detail

      • register

        void register​(T r,
                      int leaseDuration,
                      boolean isReplication)
        Assign a new Lease to the passed in LeaseManager.
        Parameters:
        r - - T to register
        leaseDuration -
        isReplication - - whether this is a replicated entry from another eureka node.
      • cancel

        boolean cancel​(java.lang.String appName,
                       java.lang.String id,
                       boolean isReplication)
        Cancel the Lease associated w/ the passed in appName and id.
        Parameters:
        appName - - unique id of the application.
        id - - unique id within appName.
        isReplication - - whether this is a replicated entry from another eureka node.
        Returns:
        true, if the operation was successful, false otherwise.
      • renew

        boolean renew​(java.lang.String appName,
                      java.lang.String id,
                      boolean isReplication)
        Renew the Lease associated w/ the passed in appName and id.
        Parameters:
        id - - unique id within appName
        isReplication - - whether this is a replicated entry from another ds node
        Returns:
        whether the operation of successful