Code example for ObjectInput

Methods: readLong, readObject

0
		out.writeObject(value);
	} 
 
	@Override 
	public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException {
		this.timeToLive = in.readLong();
		this.value = in.readObject();
	} 
 
}