Codota Logo
NoOpHttpTagStrategy.getDefaultInstance
Code IndexAdd Codota to your IDE (free)

How to use
getDefaultInstance
method
in
com.nike.wingtips.tags.NoOpHttpTagStrategy

Best Java code snippets using com.nike.wingtips.tags.NoOpHttpTagStrategy.getDefaultInstance (Showing top 5 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
ScheduledThreadPoolExecutor s =
  • Codota Iconnew ScheduledThreadPoolExecutor(corePoolSize)
  • Codota IconThreadFactory threadFactory;new ScheduledThreadPoolExecutor(corePoolSize, threadFactory)
  • Codota IconString str;new ScheduledThreadPoolExecutor(1, new ThreadFactoryBuilder().setNameFormat(str).build())
  • Smart code suggestions by Codota
}
origin: Nike-Inc/wingtips

/**
 * @return {@link NoOpHttpTagStrategy#getDefaultInstance()}.
 */
protected HttpTagAndSpanNamingStrategy<HttpServletRequest, HttpServletResponse> getNoOpTagStrategy() {
  return NoOpHttpTagStrategy.getDefaultInstance();
}
origin: Nike-Inc/wingtips

WingtipsRequestSpanCompletionAsyncListener(
  TracingState originalRequestTracingState,
  HttpTagAndSpanNamingStrategy<HttpServletRequest, HttpServletResponse> tagAndNamingStrategy,
  HttpTagAndSpanNamingAdapter<HttpServletRequest, HttpServletResponse> tagAndNamingAdapter
) {
  this.originalRequestTracingState = originalRequestTracingState;
  // We should never get a null tag strategy or tag adapter in reality, but just in case we do, default to
  //      the no-op impls.
  if (tagAndNamingStrategy == null) {
    tagAndNamingStrategy = NoOpHttpTagStrategy.getDefaultInstance();
  }
  if (tagAndNamingAdapter == null) {
    tagAndNamingAdapter = NoOpHttpTagAdapter.getDefaultInstance();
  }
  this.tagAndNamingStrategy = tagAndNamingStrategy;
  this.tagAndNamingAdapter = tagAndNamingAdapter;
}
origin: Nike-Inc/wingtips

@Test
public void getDefaultInstance_returns_DEFAULT_INSTANCE() {
  // expect
  assertThat(NoOpHttpTagStrategy.getDefaultInstance()).isSameAs(NoOpHttpTagStrategy.DEFAULT_INSTANCE);
}
origin: Nike-Inc/wingtips

@Test
public void getNoOpTagStrategy_works_as_expected() {
  // given
  RequestTracingFilter filter = new RequestTracingFilter();
  // expect
  assertThat(filter.getNoOpTagStrategy())
    .isNotNull()
    .isSameAs(NoOpHttpTagStrategy.getDefaultInstance());
}
origin: Nike-Inc/wingtips

@Test
public void constructor_uses_default_NoOpHttpTagStrategy_if_passed_null_tag_strategy() {
  // when
  WingtipsRequestSpanCompletionAsyncListener impl =
    new WingtipsRequestSpanCompletionAsyncListener(tracingState, null, tagAndNamingAdapterMock);
  // then
  assertThat(impl.tagAndNamingStrategy).isSameAs(NoOpHttpTagStrategy.getDefaultInstance());
  assertThat(impl.originalRequestTracingState).isSameAs(tracingState);
  assertThat(impl.tagAndNamingAdapter).isSameAs(tagAndNamingAdapterMock);
}
com.nike.wingtips.tagsNoOpHttpTagStrategygetDefaultInstance

Popular methods of NoOpHttpTagStrategy

  • <init>
  • doDetermineAndSetFinalSpanName
  • doExtraWingtipsTagging
  • doGetInitialSpanName
  • doHandleRequestTagging
  • doHandleResponseAndErrorTagging

Popular in Java

  • Running tasks concurrently on multiple threads
  • notifyDataSetChanged (ArrayAdapter)
  • getContentResolver (Context)
  • getExternalFilesDir (Context)
  • EOFException (java.io)
    Thrown when a program encounters the end of a file or stream during an input operation.
  • HashSet (java.util)
    This class implements the Set interface, backed by a hash table (actually a HashMap instance). It m
  • Scanner (java.util)
    A parser that parses a text string of primitive types and strings with the help of regular expressio
  • StringTokenizer (java.util)
    The string tokenizer class allows an application to break a string into tokens. The tokenization met
  • Reference (javax.naming)
  • Option (scala)
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now