Skip to content

Instantly share code, notes, and snippets.

@danielbryantuk
Created May 26, 2014 11:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save danielbryantuk/6ea0f10f377051c3552f to your computer and use it in GitHub Desktop.
Save danielbryantuk/6ea0f10f377051c3552f to your computer and use it in GitHub Desktop.
public class RequestCorrelation {
public static final String CORRELATION_ID = "correlationId";
private static final ThreadLocal<String> id = new ThreadLocal<String>();
public static String getId() { return id.get(); }
public static void setId(String correlationId) { id.set(correlationId); }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment