Árvore de páginas

Versões comparadas

Chave

  • Esta linha foi adicionada.
  • Esta linha foi removida.
  • A formatação mudou.

...

Responsável por retornar o fator de crescimento da thread no threadpool que recebeu a requisição

Sintaxe

...

getThreadPoolGrowthFactor()
Retorno
NomeTipoDescrição
aSlavesvetorRetorna um array com os slaves configurados para o threadpool corrente(master)
Exemplos
Númeronuméricoque indica o fator de crescimento das threads
Observações
  • Para visualizar o exemplo, execute seu serviço rest com a URI: /documentation/getThreadPoolGrowthFactor
Exemplos
#include

...

 "tlpp-core.th"

...


#include "tlpp-rest.th"

...



@Get('/documentation/getThreadPoolGrowthFactor')
function u_fGetThreadPoolGrowthFactor()
  local cResponse := ""
  local nRet      := oRest:

...

getThreadPoolGrowthFactor()

...



 

...

 

...

if (valtype(nRet) == 'N')
    cResponse := '{"getThreadPoolGrowthFactor":"' + cValToChar(nRet) + " eh growth factor (fator de crescimento das threads) configurado para o 

...

threadpool " + oRest:getThreadPoolName()

...

 + "}'
  else
      cResponse := 

...

'{"getThreadPoolGrowthFactor": "metodo getThreadPoolGrowthFactor nao foi executado"}'
  endif
return oRest:setResponse(cResponse)
Abrangência

01/2020