/** * Sends a chunk of this message. */ public void sendChunk() throws IOException { if (isLastChunk()) { this.headerSent = false; } sendBytes(true); }
@Override protected Part getSecurityPart() { if (this.isLastChunk()) return super.getSecurityPart(); else return null; }
@Override protected void packHeaderInfoForSending(int msgLen, boolean isSecurityHeader) { final ByteBuffer cb = getCommBuffer(); cb.putInt(msgLen); byte isLastChunk = 0x00; if (isLastChunk()) { // isLastChunk = (byte) 0x01 ; isLastChunk = this.lastChunk; if (isSecurityHeader) { isLastChunk |= 0x02; } } // cb.put(isLastChunk() ? (byte) 0x01 : (byte) 0x00); cb.put(isLastChunk); }
FunctionStats.getFunctionStats(this.functionId).incResultsReceived(); } while (!executeFunctionResponseMsg.isLastChunk());
} while (!chunkedMessage.isLastChunk()); if (serverEntries != null) { list.clear();
.incResultsReceived(); } while (!executeFunctionResponseMsg.isLastChunk());
result.addAll((List) o); } while (!getDurableCQsResponseMsg.isLastChunk()); } else { if (msgType == MessageType.EXCEPTION) {
result.addAll((List) o); } while (!keySetResponseMessage.isLastChunk()); } else { if (msgType == MessageType.EXCEPTION) {
.incResultsReceived(); } while (!executeFunctionResponseMsg.isLastChunk()); if (isDebugEnabled) { logger.debug(
msg.receiveChunk(); callback.handle(msg); } while (!msg.isLastChunk()); } else { if (msgType == MessageType.EXCEPTION) {