ServiceRef.flushOutboxAndExecuteLast();
private StateConnection readBody() { try { //_requestHttp.readBodyChunk(this); /* if (! _isBodyComplete) { // XXX: only on non-upgrade and non-101 _requestHttp.readBodyChunk(this); } */ if (! _isBodyComplete) { return StateConnection.READ; } requestProxy().bodyComplete(this); ServiceRef.flushOutboxAndExecuteLast(); if (requestHttp().isKeepalive()) { return StateConnection.READ; } else { return StateConnection.CLOSE_READ_A; } } catch (Throwable e) { log.log(Level.WARNING, e.toString(), e); e.printStackTrace(); toClose(); return StateConnection.CLOSE; } }
if (ServiceRef.flushOutboxAndExecuteLast()) {
ServiceRef.flushOutboxAndExecuteLast(); tailState = state; return tailState; _state = state; tailState = state; ServiceRef.flushOutboxAndExecuteLast(); close(); tailState = _state; ServiceRef.flushOutboxAndExecuteLast(); System.out.println("FREE: " + this); return tailState;
@Override public void run() { try { if (_fromPeerJournal != null) { long peerSequence = _fromPeerJournal.sequenceReplay(); long selfSequence = _journal.sequenceReplay(); if (peerSequence < selfSequence) { _journal.replayStart(_result, _inbox, _queue); } else if (selfSequence < peerSequence) { _fromPeerJournal.replayStart(_result, _inbox, _queue); } else { _fromPeerJournal.replayStart(null, _inbox, _queue); _journal.replayStart(_result, _inbox, _queue); } } else { _journal.replayStart(_result, _inbox, _queue); } } catch (Throwable e) { _result.fail(e); } finally { ServiceRef.flushOutboxAndExecuteLast(); } } }