private ListenableFuture<Boolean> startRender(OutputStream stream, RESPONSE response, Execution execution, Request request) { this.response = response; this.stream = stream; this.execution = execution; DataListListener parentOfTopLevelListener = new DataListListener(new ParentOfTopLevel(request,response.data()), null); dataListListenerStack.addFirst(parentOfTopLevelListener); success = SettableFuture.create(); try { getExecutor().execute(parentOfTopLevelListener); } catch (RejectedExecutionException e) { parentOfTopLevelListener.closeIO(e); } return success; }
public ParentOfTopLevel(Request request,DataList trueTopLevel) { super(request); this.trueTopLevel = trueTopLevel; freeze(); }