public void write(PortableWriter writer) throws IOException {
writer.writeUTF("n", name);
writer.writeUTF("u", uuid);
writer.writeInt("p", partitionId);
ObjectDataOutput rawDataOutput = writer.getRawDataOutput();
rawDataOutput.writeObject(callable);
}
@Override
public void read(PortableReader reader) throws IOException {
name = reader.readUTF("n");