Package me.ehp246.aufjms.api.dispatch
Record Class ByJmsConfig
java.lang.Object
java.lang.Record
me.ehp246.aufjms.api.dispatch.ByJmsConfig
public record ByJmsConfig(At to, At replyTo, Duration ttl, Duration delay, String connectionFactory)
extends Record
- Since:
- 1.0
- Author:
- Lei Yang
-
Constructor Summary
ConstructorsConstructorDescriptionByJmsConfig(At to) ByJmsConfig(At to, Duration ttl) ByJmsConfig(At to, At replyTo) ByJmsConfig(At to, At replyTo, Duration ttl) Creates an instance of aByJmsConfigrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theconnectionFactoryrecord component.delay()Returns the value of thedelayrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.replyTo()Returns the value of thereplyTorecord component.to()Returns the value of thetorecord component.final StringtoString()Returns a string representation of this record class.ttl()Returns the value of thettlrecord component.
-
Constructor Details
-
ByJmsConfig
-
ByJmsConfig
-
ByJmsConfig
-
ByJmsConfig
-
ByJmsConfig
Creates an instance of aByJmsConfigrecord class.- Parameters:
to- the value for thetorecord componentreplyTo- the value for thereplyTorecord componentttl- the value for thettlrecord componentdelay- the value for thedelayrecord componentconnectionFactory- the value for theconnectionFactoryrecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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. All components in this record class are compared withObjects::equals(Object,Object). -
to
Returns the value of thetorecord component.- Returns:
- the value of the
torecord component
-
replyTo
Returns the value of thereplyTorecord component.- Returns:
- the value of the
replyTorecord component
-
ttl
Returns the value of thettlrecord component.- Returns:
- the value of the
ttlrecord component
-
delay
Returns the value of thedelayrecord component.- Returns:
- the value of the
delayrecord component
-
connectionFactory
Returns the value of theconnectionFactoryrecord component.- Returns:
- the value of the
connectionFactoryrecord component
-