Пример #1
0
  @Override
  protected void requesting(CDODataOutput out) throws IOException {
    out.writeInt(viewID);
    out.writeCDOLockType(lockType);
    out.writeBoolean(recursive);
    if (objectIDs == null) {
      if (TRACER.isEnabled()) {
        TRACER.format("Unlocking all objects for view {0}", viewID); // $NON-NLS-1$
      }

      out.writeInt(CDOProtocolConstants.RELEASE_ALL_LOCKS);
    } else {
      if (TRACER.isEnabled()) {
        TRACER.format(
            "Unlocking of type {0} requested for view {1}",
            lockType == LockType.READ
                ? "read" //$NON-NLS-1$ //$NON-NLS-2$
                : "write",
            viewID); //$NON-NLS-1$
      }

      out.writeInt(objectIDs.size());
      for (CDOID id : objectIDs) {
        if (TRACER.isEnabled()) {
          TRACER.format("Unlocking requested for object {0}", id); // $NON-NLS-1$
        }

        out.writeCDOID(id);
      }
    }
  }
Пример #2
0
  @Override
  protected void requesting(CDODataOutput out) throws IOException {
    out.writeInt(viewID);
    out.writeCDOLockType(lockType);
    out.writeBoolean(recursive);
    out.writeLong(timeout);

    out.writeInt(revisionKeys.size());
    for (CDORevisionKey revKey : revisionKeys) {
      out.writeCDORevisionKey(revKey);
    }
  }