orbit.shared.mesh.NodeLease.kt Maven / Gradle / Ivy
/*
Copyright (C) 2015 - 2019 Electronic Arts Inc. All rights reserved.
This file is part of the Orbit Project .
See license in LICENSE.
*/
package orbit.shared.mesh
import orbit.util.time.Timestamp
typealias ChallengeToken = String
data class NodeLease(
val challengeToken: ChallengeToken,
val expiresAt: Timestamp,
val renewAt: Timestamp
) {
companion object {
@JvmStatic
val expired: NodeLease get() = NodeLease(ChallengeToken(), Timestamp(0, 0), Timestamp(0, 0))
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy