Codota Logo
ChannelPipelineFinalizerHandler.handleMetricsForCompletedRequestIfNotAlreadyDone
Code IndexAdd Codota to your IDE (free)

How to use
handleMetricsForCompletedRequestIfNotAlreadyDone
method
in
com.nike.riposte.server.handler.ChannelPipelineFinalizerHandler

Best Java code snippets using com.nike.riposte.server.handler.ChannelPipelineFinalizerHandler.handleMetricsForCompletedRequestIfNotAlreadyDone (Showing top 6 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
Charset c =
  • Codota IconString charsetName;Charset.forName(charsetName)
  • Codota IconCharset.defaultCharset()
  • Codota IconContentType contentType;contentType.getCharset()
  • Smart code suggestions by Codota
}
origin: Nike-Inc/riposte

@DataProvider(value = {
  "true",
  "false"
})
@Test
public void doChannelInactive_completes_metrics_if_necessary_and_HttpProcessingState_is_not_null(
  boolean stateIsNull
) throws Exception {
  // given
  ChannelPipelineFinalizerHandler handlerSpy = spy(handler);
  if (stateIsNull) {
    doReturn(null).when(stateAttributeMock).get();
  }
  // when
  PipelineContinuationBehavior result = handlerSpy.doChannelInactive(ctxMock);
  // then
  if (stateIsNull) {
    verify(handlerSpy, never()).handleMetricsForCompletedRequestIfNotAlreadyDone(any(HttpProcessingState.class));
  }
  else {
    verify(handlerSpy).handleMetricsForCompletedRequestIfNotAlreadyDone(state);
  }
}
origin: Nike-Inc/riposte

@Test
public void handleMetricsForCompletedRequestIfNotAlreadyDone_does_not_propagate_unexpected_exceptions() {
  // given
  HttpProcessingState stateMock = mock(HttpProcessingState.class);
  doThrow(new RuntimeException("intentional exception")).when(stateMock).isRequestMetricsRecordedOrScheduled();
  // when
  Throwable ex = catchThrowable(() -> handler.handleMetricsForCompletedRequestIfNotAlreadyDone(stateMock));
  
  // then
  Assertions.assertThat(ex).isNull();
  verify(stateMock).isRequestMetricsRecordedOrScheduled();
}
origin: Nike-Inc/riposte

handleMetricsForCompletedRequestIfNotAlreadyDone(state);
origin: com.nike.riposte/riposte-core

handleMetricsForCompletedRequestIfNotAlreadyDone(state);
origin: Nike-Inc/riposte

handleMetricsForCompletedRequestIfNotAlreadyDone(httpState);
origin: com.nike.riposte/riposte-core

handleMetricsForCompletedRequestIfNotAlreadyDone(httpState);
com.nike.riposte.server.handlerChannelPipelineFinalizerHandlerhandleMetricsForCompletedRequestIfNotAlreadyDone

Popular methods of ChannelPipelineFinalizerHandler

  • <init>
  • finalizeChannelPipeline
    This will first check the given state to see if a response was sent to the user. If not then this me
  • getStateAndCreateIfNeeded
    Returns the given context's channel's state. We expect the state to exist, so if it doesn't this met
  • logErrorWithTracing
  • releaseProxyRouterStateResources
    Tell the ProxyRouterProcessingState that the request streaming is cancelled so that it will trigger
  • argsAreEligibleForLinkingAndUnlinkingDistributedTracingInfo
  • doChannelInactive
    This method is used as the final cleanup safety net for when a channel is closed. It guarantees that
  • doChannelRead
  • doExceptionCaught

Popular in Java

  • Reactive rest calls using spring rest template
  • setScale (BigDecimal)
  • addToBackStack (FragmentTransaction)
  • requestLocationUpdates (LocationManager)
  • GregorianCalendar (java.util)
    GregorianCalendar is a concrete subclass of Calendarand provides the standard calendar used by most
  • Collectors (java.util.stream)
  • JCheckBox (javax.swing)
  • JFrame (javax.swing)
  • DateTimeFormat (org.joda.time.format)
    Factory that creates instances of DateTimeFormatter from patterns and styles. Datetime formatting i
  • Reflections (org.reflections)
    Reflections one-stop-shop objectReflections scans your classpath, indexes the metadata, allows you t
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