Record Class TrdpSessionFactory.MdTelegramConfig
java.lang.Object
java.lang.Record
com.trdp.config.TrdpSessionFactory.MdTelegramConfig
- Enclosing class:
TrdpSessionFactory
public static record TrdpSessionFactory.MdTelegramConfig(long replyTimeoutUs, long confirmTimeoutUs, TransportProtocol protocol, int maxRetries)
extends Record
Per-telegram MD configuration resolved from XML.
-
Constructor Summary
ConstructorsConstructorDescriptionMdTelegramConfig(long replyTimeoutUs, long confirmTimeoutUs, TransportProtocol protocol, int maxRetries) Creates an instance of aMdTelegramConfigrecord class. -
Method Summary
Modifier and TypeMethodDescriptionlongReturns the value of theconfirmTimeoutUsrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intReturns the value of themaxRetriesrecord component.protocol()Returns the value of theprotocolrecord component.longReturns the value of thereplyTimeoutUsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
MdTelegramConfig
public MdTelegramConfig(long replyTimeoutUs, long confirmTimeoutUs, TransportProtocol protocol, int maxRetries) Creates an instance of aMdTelegramConfigrecord class.- Parameters:
replyTimeoutUs- the value for thereplyTimeoutUsrecord componentconfirmTimeoutUs- the value for theconfirmTimeoutUsrecord componentprotocol- the value for theprotocolrecord componentmaxRetries- the value for themaxRetriesrecord component
-
-
Method Details
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
replyTimeoutUs
public long replyTimeoutUs()Returns the value of thereplyTimeoutUsrecord component.- Returns:
- the value of the
replyTimeoutUsrecord component
-
confirmTimeoutUs
public long confirmTimeoutUs()Returns the value of theconfirmTimeoutUsrecord component.- Returns:
- the value of the
confirmTimeoutUsrecord component
-
protocol
Returns the value of theprotocolrecord component.- Returns:
- the value of the
protocolrecord component
-
maxRetries
public int maxRetries()Returns the value of themaxRetriesrecord component.- Returns:
- the value of the
maxRetriesrecord component
-