@Override
public void addWork(String workId, String url, Map<String, String> params)
throws MalformedURLException, InterruptedException, ExecutionException {
Queue queue = QueueFactory.getQueue(workId);
TaskOptions options = TaskOptions.Builder.withUrl(url);
options.method(Method.POST);
for(String name : params.keySet()) {
options.param(name, params.get(name));
}
options.header("Host", BackendServiceFactory.getBackendService().getBackendAddress("worker",0));
queue.add(options);
}