コード例 #1
0
  /** {@inheritDoc} */
  @Override
  public boolean readFrom(ByteBuffer buf, MessageReader reader) {
    reader.setBuffer(buf);

    if (!reader.beforeMessageRead()) return false;

    if (!super.readFrom(buf, reader)) return false;

    switch (reader.state()) {
      case 10:
        dhtVer = reader.readMessage("dhtVer");

        if (!reader.isLastRead()) return false;

        reader.incrementState();

      case 11:
        filterFailedKeys = reader.readCollection("filterFailedKeys", MessageCollectionItemType.MSG);

        if (!reader.isLastRead()) return false;

        reader.incrementState();

      case 12:
        futId = reader.readIgniteUuid("futId");

        if (!reader.isLastRead()) return false;

        reader.incrementState();

      case 13:
        invalidParts = reader.readCollection("invalidParts", MessageCollectionItemType.INT);

        if (!reader.isLastRead()) return false;

        reader.incrementState();

      case 14:
        miniId = reader.readIgniteUuid("miniId");

        if (!reader.isLastRead()) return false;

        reader.incrementState();

      case 15:
        ownedValKeys = reader.readCollection("ownedValKeys", MessageCollectionItemType.MSG);

        if (!reader.isLastRead()) return false;

        reader.incrementState();

      case 16:
        ownedValVals = reader.readCollection("ownedValVals", MessageCollectionItemType.MSG);

        if (!reader.isLastRead()) return false;

        reader.incrementState();

      case 17:
        pending = reader.readCollection("pending", MessageCollectionItemType.MSG);

        if (!reader.isLastRead()) return false;

        reader.incrementState();

      case 18:
        retVal = reader.readMessage("retVal");

        if (!reader.isLastRead()) return false;

        reader.incrementState();
    }

    return true;
  }
コード例 #2
0
  /** {@inheritDoc} */
  @Override
  public boolean readFrom(ByteBuffer buf, MessageReader reader) {
    reader.setBuffer(buf);

    if (!reader.beforeMessageRead()) return false;

    if (!super.readFrom(buf, reader)) return false;

    switch (reader.state()) {
      case 3:
        conflictExpireTimes = reader.readMessage("conflictExpireTimes");

        if (!reader.isLastRead()) return false;

        reader.incrementState();

      case 4:
        conflictTtls = reader.readMessage("conflictTtls");

        if (!reader.isLastRead()) return false;

        reader.incrementState();

      case 5:
        conflictVers = reader.readCollection("conflictVers", MessageCollectionItemType.MSG);

        if (!reader.isLastRead()) return false;

        reader.incrementState();

      case 6:
        entryProcessorsBytes =
            reader.readCollection("entryProcessorsBytes", MessageCollectionItemType.BYTE_ARR);

        if (!reader.isLastRead()) return false;

        reader.incrementState();

      case 7:
        expiryPlcBytes = reader.readByteArray("expiryPlcBytes");

        if (!reader.isLastRead()) return false;

        reader.incrementState();

      case 8:
        fastMap = reader.readBoolean("fastMap");

        if (!reader.isLastRead()) return false;

        reader.incrementState();

      case 9:
        filter =
            reader.readObjectArray(
                "filter", MessageCollectionItemType.MSG, CacheEntryPredicate.class);

        if (!reader.isLastRead()) return false;

        reader.incrementState();

      case 10:
        futVer = reader.readMessage("futVer");

        if (!reader.isLastRead()) return false;

        reader.incrementState();

      case 11:
        hasPrimary = reader.readBoolean("hasPrimary");

        if (!reader.isLastRead()) return false;

        reader.incrementState();

      case 12:
        invokeArgsBytes =
            reader.readObjectArray(
                "invokeArgsBytes", MessageCollectionItemType.BYTE_ARR, byte[].class);

        if (!reader.isLastRead()) return false;

        reader.incrementState();

      case 13:
        keys = reader.readCollection("keys", MessageCollectionItemType.MSG);

        if (!reader.isLastRead()) return false;

        reader.incrementState();

      case 14:
        byte opOrd;

        opOrd = reader.readByte("op");

        if (!reader.isLastRead()) return false;

        op = GridCacheOperation.fromOrdinal(opOrd);

        reader.incrementState();

      case 15:
        retval = reader.readBoolean("retval");

        if (!reader.isLastRead()) return false;

        reader.incrementState();

      case 16:
        skipStore = reader.readBoolean("skipStore");

        if (!reader.isLastRead()) return false;

        reader.incrementState();

      case 17:
        subjId = reader.readUuid("subjId");

        if (!reader.isLastRead()) return false;

        reader.incrementState();

      case 18:
        byte syncModeOrd;

        syncModeOrd = reader.readByte("syncMode");

        if (!reader.isLastRead()) return false;

        syncMode = CacheWriteSynchronizationMode.fromOrdinal(syncModeOrd);

        reader.incrementState();

      case 19:
        taskNameHash = reader.readInt("taskNameHash");

        if (!reader.isLastRead()) return false;

        reader.incrementState();

      case 20:
        topVer = reader.readMessage("topVer");

        if (!reader.isLastRead()) return false;

        reader.incrementState();

      case 21:
        updateVer = reader.readMessage("updateVer");

        if (!reader.isLastRead()) return false;

        reader.incrementState();

      case 22:
        vals = reader.readCollection("vals", MessageCollectionItemType.MSG);

        if (!reader.isLastRead()) return false;

        reader.incrementState();
    }

    return true;
  }