public Value read(AutoBuffer bb) {
    assert _key == null;        // Not set yet
    _persist = (byte) bb.get1();
    _type = (short) bb.get2();
    _mem = bb.getA1();
    _max = _mem.length;
    _pojo = null;
    // On remote nodes _rwlock is initialized to 0 (signaling a remote PUT is
    // in progress) flips to -1 when the remote PUT is done, or +1 if a notify
    // needs to happen.
    _rwlock.set(-1);            // Set as 'remote put is done'
    touch();
    return this;
  }
public Value read ( AutoBuffer bb ) { assert _key == null ; _persist = ( byte ) bb . get1 ( ) ; _type = ( short ) bb . get2 ( ) ; _mem = bb . getA1 ( ) ; _max = _mem . length ; _pojo = null ; _rwlock . set ( - 1 ) ; touch ( ) ; return this ; }
Custom serializer: set _max from _mem length; set replicas & timestamp.