Record Class AbstractConnectionFactory.PendingIO
java.lang.Object
java.lang.Record
org.springframework.integration.ip.tcp.connection.AbstractConnectionFactory.PendingIO
- Enclosing class:
AbstractConnectionFactory
protected static record AbstractConnectionFactory.PendingIO(long failedAt, SelectionKey key)
extends Record
- Since:
- 2.0
- Author:
- Gary Russell, Artem Bilan, Christian Tzolov, Ngoc Nhan
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
PendingIO
(long failedAt, SelectionKey key) Creates an instance of aPendingIO
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.long
failedAt()
Returns the value of thefailedAt
record component.final int
hashCode()
Returns a hash code value for this object.key()
Returns the value of thekey
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
PendingIO
Creates an instance of aPendingIO
record class.- Parameters:
failedAt
- the value for thefailedAt
record componentkey
- the value for thekey
record 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 thecompare
method from their corresponding wrapper classes. -
failedAt
public long failedAt()Returns the value of thefailedAt
record component.- Returns:
- the value of the
failedAt
record component
-
key
Returns the value of thekey
record component.- Returns:
- the value of the
key
record component
-