public LongPoll(HServerR pthis, BMessage methodResult) { if (log.isDebugEnabled()) { log.debug("LongPoll(" + methodResult); } this.pthis = pthis; if (methodResult != null) { this.methodResult = methodResult; } else { BOutput outp = pthis.transport.getOutput(); outp.header.flags |= BMessageHeader.FLAG_RESPONSE; outp.store(null); // irgendwas, damit auch der Header in den ByteBuffer geschrieben wird. this.methodResult = outp.toMessage(); } if (log.isDebugEnabled()) { log.debug(")LongPoll"); } }
public MyAsyncMethod(HServerR pthis, MyAsyncResult asyncResult) { this.pthis = pthis; this.asyncResult = asyncResult; }
public MyAsyncResult(HServerR pthis) { this.pthis = pthis; }