@Get("json") public String getTable() { GatherModule gather = (GatherModule) getContext().getAttributes().get(IGatherService.class.getCanonicalName()); gather.asynCall(1, new TimeoutRun(gather)); return ""; }
@Override public void run() { logger.info("first run"); gather.asynCall( 1, new Runnable() { public void run() { logger.info("second run"); } }); }