Record Class DefaultHeaderChannelRegistry.MessageChannelWrapper
java.lang.Object
java.lang.Record
org.springframework.integration.channel.DefaultHeaderChannelRegistry.MessageChannelWrapper
- Enclosing class:
- DefaultHeaderChannelRegistry
protected static record DefaultHeaderChannelRegistry.MessageChannelWrapper(MessageChannel channel, long expireAt)
extends Record
-
Constructor Summary
ModifierConstructorDescriptionprotected
MessageChannelWrapper
(MessageChannel channel, long expireAt) Creates an instance of aMessageChannelWrapper
record class. -
Method Summary
Modifier and TypeMethodDescriptionchannel()
Returns the value of thechannel
record component.final boolean
Indicates whether some other object is "equal to" this one.long
expireAt()
Returns the value of theexpireAt
record component.final int
hashCode()
Returns a hash code value for this object.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
MessageChannelWrapper
Creates an instance of aMessageChannelWrapper
record class.- Parameters:
channel
- the value for thechannel
record componentexpireAt
- the value for theexpireAt
record 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. Reference components are compared withObjects::equals(Object,Object)
; primitive components are compared with '=='. -
channel
Returns the value of thechannel
record component.- Returns:
- the value of the
channel
record component
-
expireAt
public long expireAt()Returns the value of theexpireAt
record component.- Returns:
- the value of the
expireAt
record component
-