docs: @Override
  	public void suspend() {
  
  		componentMainThreadExecutor.assertRunningInMainThread();
  
  		log.info("Suspending SlotPool.");
  
  		// cancel all pending allocations --> we can request these slots
  		// again after we regained the leadership
  		Set<AllocationID> allocationIds = pendingRequests.keySetB();
  
  		for (AllocationID allocationId : allocationIds) {
  			resourceManagerGateway.cancelSlotRequest(allocationId);
  		}
  
  		// do not accept any requests
  		jobMasterId = null;
  		resourceManagerGateway = null;
  
  		// Clear (but not release!) the available slots. The TaskManagers should re-register them
  		// at the new leader JobManager/SlotPool
  		clear();
  	}