protected short computeCompressedShort(short s) {
    if (processorId != 0) {
      s |= HAS_PROCESSOR_ID;
    }
    if (notificationOnly) {
      s |= NOTIFICATION_ONLY;
    }
    if (getTXUniqId() != TXManagerImpl.NOTX) {
      s |= HAS_TX_ID;
      if (txMemberId != null) {
        s |= HAS_TX_MEMBERID;
      }
    }
    return s;
  }
Sets the bits of a short by using the bit masks. A subclass must override this method if it is
using bits in the compressed short.

@return short with appropriate bits set
geode-core/src/main/java/org/apache/geode/internal/cache/partitioned/PartitionMessage.java