Tabnine Logo
SerialHystrixRequestEvents
Code IndexAdd Tabnine to your IDE (free)

How to use
SerialHystrixRequestEvents
in
com.netflix.hystrix.serial

Best Java code snippets using com.netflix.hystrix.serial.SerialHystrixRequestEvents (Showing top 3 results out of 315)

origin: com.netflix.hystrix/hystrix-metrics-event-stream

  @Override
  public String call(HystrixRequestEvents requestEvents) {
    return SerialHystrixRequestEvents.toJsonString(requestEvents);
  }
}), pausePollerThreadDelayInMs);
origin: com.netflix.hystrix/hystrix-serialization

public static String toJsonString(HystrixRequestEvents requestEvents) {
  StringWriter jsonString = new StringWriter();
  try {
    JsonGenerator json = jsonFactory.createGenerator(jsonString);
    serializeRequestEvents(requestEvents, json);
  } catch (Exception e) {
    throw new RuntimeException(e);
  }
  return jsonString.getBuffer().toString();
}
origin: com.netflix.hystrix/hystrix-serialization

private static void serializeRequestEvents(HystrixRequestEvents requestEvents, JsonGenerator json) {
  try {
    json.writeStartArray();
    for (Map.Entry<HystrixRequestEvents.ExecutionSignature, List<Integer>> entry: requestEvents.getExecutionsMappedToLatencies().entrySet()) {
      convertExecutionToJson(json, entry.getKey(), entry.getValue());
    }
    json.writeEndArray();
    json.close();
  } catch (Exception e) {
    throw new RuntimeException(e);
  }
}
com.netflix.hystrix.serialSerialHystrixRequestEvents

Most used methods

  • convertExecutionToJson
  • serializeRequestEvents
  • toJsonString

Popular in Java

  • Making http requests using okhttp
  • findViewById (Activity)
  • addToBackStack (FragmentTransaction)
  • onCreateOptionsMenu (Activity)
  • Table (com.google.common.collect)
    A collection that associates an ordered pair of keys, called a row key and a column key, with a sing
  • ConnectException (java.net)
    A ConnectException is thrown if a connection cannot be established to a remote host on a specific po
  • Socket (java.net)
    Provides a client-side TCP socket.
  • TimerTask (java.util)
    The TimerTask class represents a task to run at a specified time. The task may be run once or repeat
  • TimeUnit (java.util.concurrent)
    A TimeUnit represents time durations at a given unit of granularity and provides utility methods to
  • Location (org.springframework.beans.factory.parsing)
    Class that models an arbitrary location in a Resource.Typically used to track the location of proble
  • Top plugins for Android Studio
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now