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
- Since:
- 3.0
- Author:
- Gary Russell, Artem Bilan, Trung Pham, Christian Tzolov
- 
Constructor SummaryConstructorsModifierConstructorDescriptionprotectedMessageChannelWrapper(MessageChannel channel, long expireAt) Creates an instance of aMessageChannelWrapperrecord class.
- 
Method SummaryModifier 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- 
MessageChannelWrapperCreates an instance of aMessageChannelWrapperrecord class.- Parameters:
- channel- the value for the- channelrecord component
- expireAt- the value for the- expireAtrecord component
 
 
- 
- 
Method Details- 
toString
- 
hashCode
- 
equalsIndicates 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.
- 
channelReturns the value of thechannelrecord component.- Returns:
- the value of the channelrecord component
 
- 
expireAtpublic long expireAt()Returns the value of theexpireAtrecord component.- Returns:
- the value of the expireAtrecord component
 
 
-