public void setLastChunkAndNumParts(boolean lastChunk, int numParts) {
    setLastChunk(lastChunk);
    if (serverConnection != null) {
      // we us e three bits for number of parts in last chunk byte
      byte localLastChunk = (byte) (numParts << 5);
      this.lastChunk |= localLastChunk;
    }
  }
Sets whether this is the last chunk.

@param lastChunk Whether this is the last chunk
geode-core/src/main/java/org/apache/geode/internal/cache/tier/sockets/ChunkedMessage.java