+ this.cookie = cookie;
+ }
+
+ public static LocalHistoryIdentifier readFrom(final DataInput in) throws IOException {
+ final ClientIdentifier clientId = ClientIdentifier.readFrom(in);
+
+ final byte header = WritableObjects.readLongHeader(in);
+ return new LocalHistoryIdentifier(clientId, WritableObjects.readFirstLong(in, header),
+ WritableObjects.readSecondLong(in, header));
+ }
+
+ @Override
+ public void writeTo(final DataOutput out) throws IOException {
+ clientId.writeTo(out);
+ WritableObjects.writeLongs(out, historyId, cookie);