Class ReplayRecord
java.lang.Object
org.apache.synapse.transport.http.conn.ReplayRecord
Represents a single replay record that encapsulates message content and
associated metadata for replay purposes.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionReplayRecord(String messageId, Map<String, Object> metadata, byte[] data) Constructs a new replay record instance containing the unique message ID, metadata, and raw data of the message. -
Method Summary
Modifier and TypeMethodDescriptionbyte[]getData()Returns the raw binary message data contained in this record.Returns the unique identifier associated with this replay record.Returns metadata associated with this record.
-
Constructor Details
-
ReplayRecord
Constructs a new replay record instance containing the unique message ID, metadata, and raw data of the message.- Parameters:
messageId- a unique identifier for the replayed message; may not be nullmetadata- map containing message context metadata; may be null if not applicabledata- byte array containing the message payload; may be null or empty
-
-
Method Details
-
getMessageId
Returns the unique identifier associated with this replay record.- Returns:
- message ID string
-
getMetadata
Returns metadata associated with this record. The metadata includes contextual information such as API name, version, transport headers, or other attributes recorded at replay capture time.- Returns:
- metadata map, or null if no metadata is available
-
getData
public byte[] getData()Returns the raw binary message data contained in this record.- Returns:
- byte array of message data, or null if not set
-