code: public void setAppServerDefaultDeploymentTimeout(long secs) throws Exception {
          final String[] addressArr = { SUBSYSTEM, DEPLOYMENT_SCANNER, SCANNER, "default" };
          final Address address = Address.root().add(addressArr);
          final ModelNode req = createWriteAttributeRequest("deployment-timeout", Long.toString(secs), address);
          final ModelNode response = execute(req);
  
          if (!isSuccess(response)) {
              throw new FailureException(response);
          }
          return;
      }
docs: Sets the deployment timeout of the default deployment scanner. If a deployment
  takes longer than this value, it will fail.
  @param secs number of seconds the app server will wait for a deployment to finish
  @throws Exception any error