com.netflix.eureka
Class CurrentRequestVersion

java.lang.Object
  extended by com.netflix.eureka.CurrentRequestVersion

public final class CurrentRequestVersion
extends java.lang.Object

A thread-scoped value that holds the "current Version" 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
static Version get()
          Gets the current Version Will return null if no current version has been set.
static void set(Version version)
          Sets the current Version
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

get

public static Version get()
Gets the current Version Will return null if no current version has been set.


set

public static void set(Version version)
Sets the current Version