Package com.tnsai.communication
Class AcknowledgedMessage.Builder
java.lang.Object
com.tnsai.communication.AcknowledgedMessage.Builder
- Enclosing class:
AcknowledgedMessage
Builder for AcknowledgedMessage.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAdds acknowledgment metadata.build()Builds the AcknowledgedMessage.correlationId(String correlationId) Sets the correlation ID.maxRetries(int maxRetries) Sets the maximum number of retries on timeout.message(AgentMessage message) Sets the message to be acknowledged.Sets the acknowledgment timeout.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
correlationId
Sets the correlation ID. Auto-generated if not set. -
message
Sets the message to be acknowledged. -
timeout
Sets the acknowledgment timeout. -
maxRetries
Sets the maximum number of retries on timeout. -
addSpec
Adds acknowledgment metadata. -
build
Builds the AcknowledgedMessage.
-