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
ConstructorsModifierConstructorDescriptionprotectedMessageChannelWrapper(MessageChannel channel, long expireAt) Creates an instance of aMessageChannelWrapperrecord class. -
Method Summary
Modifier and TypeMethodDescriptionchannel()Returns the value of thechannelrecord component.final booleanIndicates whether some other object is "equal to" this one.longexpireAt()Returns the value of theexpireAtrecord component.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
MessageChannelWrapper
Creates an instance of aMessageChannelWrapperrecord class.- Parameters:
channel- the value for thechannelrecord componentexpireAt- the value for theexpireAtrecord 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 thechannelrecord component.- Returns:
- the value of the
channelrecord component
-
expireAt
public long expireAt()Returns the value of theexpireAtrecord component.- Returns:
- the value of the
expireAtrecord component
-