A recorder packet represents the atomic piece of information captured by a recorder.
A packet has two timing information (the time at which the piece of information started
being captured, and the time at which the capture was complete). It also provides a size
estimate for evaluating the recorder workload. Any other information is protocol-specific
and defined in implementing classes.
The interface requires that implementations do implement Serializable. A packet must be
serializable using java serialization. In order to flawlessly work, a packet should contain
only serializable fields, and should not reference objects that are not related to the
information that should be serialized (unless the field is transient).
Returns the packet type id that this class implements. Packet types are declared
through the extension point com.ibm.rational.test.lt.recorder.core.recorderPacket. The
implementation class must reside in the same plugin, or in another plugin provided
that the declaring plugin has a class-access to the implementation class.
the packet type id that this class implements.
Returns the packet version. Packets defined before this method was introduced
are implicitly assigned version 1. If no serialization-breaking change has occurred
since then, this method should return 1. Any time a serialization-breaking change
occurs on any packet defined in the same plugin, this version should be incremented by 1
for all packet implementations. This version is used in future releases to handle packet
upgrading when loading packets serialized with a previous version.
The packet version, a strictly positive integer.
Returns the unique (within the session) id of the recorder that issued the packet.
the unique (within the session) id of the recorder that issued the packet.