Package com.netflix.eureka.resources
Class CurrentRequestVersion
- java.lang.Object
-
- com.netflix.eureka.resources.CurrentRequestVersion
-
public final class CurrentRequestVersion extends java.lang.ObjectA thread-scoped value that holds the "currentVersion" for the request.This is not intended as a general mechanism for passing data. Rather it is here to support those cases where someplace deep in a library we need to know about the context of the request that initially triggered the current request.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Versionget()Gets the currentVersionWill return null if no current version has been set.static voidremove()Clears theThreadLocalused to store the version.static voidset(Version version)Sets the currentVersion.
-