|
|
|
@ -32,6 +32,7 @@ import org.springframework.web.bind.annotation.RequestBody;
|
|
|
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
|
|
|
|
|
import java.util.List;
|
|
|
|
|
import java.util.Set;
|
|
|
|
|
|
|
|
|
|
import static cn.hippo4j.common.constant.Constants.HTTP_EXECUTE_TIMEOUT;
|
|
|
|
|
import static cn.hippo4j.common.constant.Constants.REGISTER_ADAPTER_BASE_PATH;
|
|
|
|
@ -51,6 +52,12 @@ public class ThreadPoolAdapterController {
|
|
|
|
|
return Results.success(result);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@GetMapping(REGISTER_ADAPTER_BASE_PATH + "/query/key")
|
|
|
|
|
public Result<Set<String>> queryAdapterThreadPoolThreadPoolKey(ThreadPoolAdapterReqDTO requestParameter) {
|
|
|
|
|
Set<String> result = threadPoolAdapterService.queryThreadPoolKey(requestParameter);
|
|
|
|
|
return Results.success(result);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@PostMapping(REGISTER_ADAPTER_BASE_PATH + "/update")
|
|
|
|
|
public Result<Void> updateAdapterThreadPool(@RequestBody ThreadPoolAdapterReqDTO requestParameter) {
|
|
|
|
|
for (String each : requestParameter.getClientAddressList()) {
|
|
|
|
|