Record Class EndpointConnectivityController.Observation
java.lang.Object
java.lang.Record
org.cloudburstmc.netty.signaling.provider.connectivity.EndpointConnectivityController.Observation
- Enclosing class:
- EndpointConnectivityController
public static record EndpointConnectivityController.Observation(InetSocketAddress server, InetSocketAddress mapped, EndpointConnectivityController.TransactionState transactionState, long monitorEpoch, long mappingRevision, long successfulResponses, long failedTransactions, long lastSuccessAgeMillis, long freshUntilNanos)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionObservation(InetSocketAddress server, InetSocketAddress mapped, EndpointConnectivityController.TransactionState transactionState, long monitorEpoch, long mappingRevision, long successfulResponses, long failedTransactions, long lastSuccessAgeMillis, long freshUntilNanos) Creates an instance of aObservationrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.longReturns the value of thefailedTransactionsrecord component.booleanfreshAt(long nowNanos) Uses the same monotonic clock as this controller; freshness is never a reachability verdict.longReturns the value of thefreshUntilNanosrecord component.final inthashCode()Returns a hash code value for this object.longReturns the value of thelastSuccessAgeMillisrecord component.mapped()Returns the value of themappedrecord component.longReturns the value of themappingRevisionrecord component.longReturns the value of themonitorEpochrecord component.server()Returns the value of theserverrecord component.longReturns the value of thesuccessfulResponsesrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of thetransactionStaterecord component.
-
Constructor Details
-
Observation
public Observation(InetSocketAddress server, InetSocketAddress mapped, EndpointConnectivityController.TransactionState transactionState, long monitorEpoch, long mappingRevision, long successfulResponses, long failedTransactions, long lastSuccessAgeMillis, long freshUntilNanos) Creates an instance of aObservationrecord class.- Parameters:
server- the value for theserverrecord componentmapped- the value for themappedrecord componenttransactionState- the value for thetransactionStaterecord componentmonitorEpoch- the value for themonitorEpochrecord componentmappingRevision- the value for themappingRevisionrecord componentsuccessfulResponses- the value for thesuccessfulResponsesrecord componentfailedTransactions- the value for thefailedTransactionsrecord componentlastSuccessAgeMillis- the value for thelastSuccessAgeMillisrecord componentfreshUntilNanos- the value for thefreshUntilNanosrecord component
-
-
Method Details
-
freshAt
public boolean freshAt(long nowNanos) Uses the same monotonic clock as this controller; freshness is never a reachability verdict. -
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 '=='. -
server
Returns the value of theserverrecord component.- Returns:
- the value of the
serverrecord component
-
mapped
Returns the value of themappedrecord component.- Returns:
- the value of the
mappedrecord component
-
transactionState
Returns the value of thetransactionStaterecord component.- Returns:
- the value of the
transactionStaterecord component
-
monitorEpoch
public long monitorEpoch()Returns the value of themonitorEpochrecord component.- Returns:
- the value of the
monitorEpochrecord component
-
mappingRevision
public long mappingRevision()Returns the value of themappingRevisionrecord component.- Returns:
- the value of the
mappingRevisionrecord component
-
successfulResponses
public long successfulResponses()Returns the value of thesuccessfulResponsesrecord component.- Returns:
- the value of the
successfulResponsesrecord component
-
failedTransactions
public long failedTransactions()Returns the value of thefailedTransactionsrecord component.- Returns:
- the value of the
failedTransactionsrecord component
-
lastSuccessAgeMillis
public long lastSuccessAgeMillis()Returns the value of thelastSuccessAgeMillisrecord component.- Returns:
- the value of the
lastSuccessAgeMillisrecord component
-
freshUntilNanos
public long freshUntilNanos()Returns the value of thefreshUntilNanosrecord component.- Returns:
- the value of the
freshUntilNanosrecord component
-