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 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
-
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. -
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
-