Interface WorkerLeaseHandler.LeaseRecreationCallback

All Known Implementing Classes:
RemoteQueryDispatcher
Enclosing class:
WorkerLeaseHandler

public static interface WorkerLeaseHandler.LeaseRecreationCallback
Callback invoked when the lease handler must recreate leases (because our existing lease was broken).
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Invoked After we've recreated the lease, to recreate the status entries for each worker.
    boolean
    Should we recreate leases if the lease has failed?
  • Method Details

    • shouldRecreateLease

      boolean shouldRecreateLease()
      Should we recreate leases if the lease has failed?
      Returns:
      true if we should attempt to recreate leases
    • doRecreateStatuses

      boolean doRecreateStatuses()
      Invoked After we've recreated the lease, to recreate the status entries for each worker.
      Returns:
      true if all statuses were recreated successfully, false otherwise