Class ReplayRecord
- java.lang.Object
-
- org.apache.synapse.transport.http.conn.ReplayRecord
-
public class ReplayRecord extends Object
Represents a single replay record that encapsulates message content and associated metadata for replay purposes.
-
-
Constructor Summary
Constructors Constructor Description ReplayRecord(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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]getData()Returns the raw binary message data contained in this record.StringgetMessageId()Returns the unique identifier associated with this replay record.Map<String,Object>getMetadata()Returns metadata associated with this record.
-
-
-
Constructor Detail
-
ReplayRecord
public ReplayRecord(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.- 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 Detail
-
getMessageId
public String getMessageId()
Returns the unique identifier associated with this replay record.- Returns:
- message ID string
-
getMetadata
public Map<String,Object> 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
-
-