Package org.opendaylight.protocol.pcep
Record Class PCEPTimerProposal
java.lang.Object
java.lang.Record
org.opendaylight.protocol.pcep.PCEPTimerProposal
public record PCEPTimerProposal(@NonNull org.opendaylight.yangtools.yang.common.Uint8 keepAlive, @NonNull org.opendaylight.yangtools.yang.common.Uint8 deadTimer)
extends Record
A curated
keepAlive() and deadTimer() timer proposal.-
Constructor Summary
ConstructorsConstructorDescriptionPCEPTimerProposal(@NonNull org.opendaylight.yangtools.yang.common.Uint8 keepAlive, @NonNull org.opendaylight.yangtools.yang.common.Uint8 deadTimer) Creates an instance of aPCEPTimerProposalrecord class.PCEPTimerProposal(PcepSessionTimers timers) -
Method Summary
Modifier and TypeMethodDescription@NonNull org.opendaylight.yangtools.yang.common.Uint8Returns the value of thedeadTimerrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.@NonNull org.opendaylight.yangtools.yang.common.Uint8Returns the value of thekeepAliverecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
PCEPTimerProposal
public PCEPTimerProposal(@NonNull org.opendaylight.yangtools.yang.common.Uint8 keepAlive, @NonNull org.opendaylight.yangtools.yang.common.Uint8 deadTimer) Creates an instance of aPCEPTimerProposalrecord class.- Parameters:
keepAlive- the value for thekeepAliverecord componentdeadTimer- the value for thedeadTimerrecord component
-
PCEPTimerProposal
-
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
keepAlive
public @NonNull org.opendaylight.yangtools.yang.common.Uint8 keepAlive()Returns the value of thekeepAliverecord component.- Returns:
- the value of the
keepAliverecord component
-
deadTimer
public @NonNull org.opendaylight.yangtools.yang.common.Uint8 deadTimer()Returns the value of thedeadTimerrecord component.- Returns:
- the value of the
deadTimerrecord component
-