congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
KafkaSink.runRecordCounterListener
Code IndexAdd Tabnine to your IDE (free)

How to use
runRecordCounterListener
method
in
com.netflix.suro.sink.kafka.KafkaSink

Best Java code snippets using com.netflix.suro.sink.kafka.KafkaSink.runRecordCounterListener (Showing top 2 results out of 315)

origin: com.netflix.suro/suro-kafka-producer

  private void dropMessage(final String routingKey, final String reason) {
    DynamicCounter.increment(
      MonitorConfig
        .builder("droppedRecord")
        .withTag(TagKey.ROUTING_KEY, routingKey)
        .withTag(TagKey.DROPPED_REASON, reason)
        .build());
    droppedRecords.incrementAndGet();
    runRecordCounterListener();
  }
}
origin: com.netflix.suro/suro-kafka-producer

@Override
public void writeTo(final MessageContainer message) {
  queuedRecords.incrementAndGet();
  DynamicCounter.increment(
    MonitorConfig
      .builder("queuedRecord")
      .withTag(TagKey.ROUTING_KEY, message.getRoutingKey())
      .build());
  runRecordCounterListener();
  if (metadataFetchedTopicSet.contains(message.getRoutingKey())) {
    sendMessage(message);
  } else {
    if(!metadataWaitingQueue.offer(message)) {
      dropMessage(message.getRoutingKey(), "metadataWaitingQueueFull");
    }
  }
}
com.netflix.suro.sink.kafkaKafkaSinkrunRecordCounterListener

Popular methods of KafkaSink

  • dropMessage
  • enqueue
  • initialize
  • sendMessage
  • setName
  • setServoReporter
  • start

Popular in Java

  • Making http post requests using okhttp
  • getExternalFilesDir (Context)
  • findViewById (Activity)
  • getResourceAsStream (ClassLoader)
  • BufferedWriter (java.io)
    Wraps an existing Writer and buffers the output. Expensive interaction with the underlying reader is
  • RandomAccessFile (java.io)
    Allows reading from and writing to a file in a random-access manner. This is different from the uni-
  • Proxy (java.net)
    This class represents proxy server settings. A created instance of Proxy stores a type and an addres
  • URL (java.net)
    A Uniform Resource Locator that identifies the location of an Internet resource as specified by RFC
  • Collections (java.util)
    This class consists exclusively of static methods that operate on or return collections. It contains
  • CountDownLatch (java.util.concurrent)
    A synchronization aid that allows one or more threads to wait until a set of operations being perfor
  • Github Copilot alternatives
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