Example #1
0
  public static void WriteEvcHint(CacheObjectOutput writer, EvictionHint evcHint)
      throws IOException {
    if (evcHint == null) {
      writer.writeShort((short) EvictionHintType.NULL.getValue());
      return;
    }

    writer.writeShort((short) evcHint._hintType.getValue());
    ((ICompactSerializable) evcHint).serialize(writer);
  }
Example #2
0
 public void serialize(CacheObjectOutput writer) throws IOException {
   super.serialize(writer);
   writer.writeShort(_count);
 }
Example #3
0
 @Override
 public void serialize(CacheObjectOutput writer) throws IOException {
   writer.writeShort((short) _hintType.getValue());
 }