Skip to content

Instantly share code, notes, and snippets.

@drewcsillag
Last active December 7, 2016 14:53
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 drewcsillag/9cc0710ac803c938ef3cb5f7d4184515 to your computer and use it in GitHub Desktop.
Save drewcsillag/9cc0710ac803c938ef3cb5f7d4184515 to your computer and use it in GitHub Desktop.
Create a trial
final ThreadPoolExecutor experimentExecutor = new ThreadPoolExecutor(
1, 1, 0, TimeUnit.MILLISECONDS, new LinkedBlockingQueue<Runnable>(1));
trial = new Trial(
experimentExecutor,
metricRegistry,
"password.succession",
() -> WhichReturn.valueOf(featureService.getFeature("password.succession")),
Trial.IDENTITY_WRAPPER, hibernateWrapper);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment