Tabnine Logo
SuroKeyedMessage.getRoutingKey
Code IndexAdd Tabnine to your IDE (free)

How to use
getRoutingKey
method
in
com.netflix.suro.sink.kafka.SuroKeyedMessage

Best Java code snippets using com.netflix.suro.sink.kafka.SuroKeyedMessage.getRoutingKey (Showing top 3 results out of 315)

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

@Override
public String toString() {
  return String.format("routingKey: %s, payload byte size: %d",
      getRoutingKey(),
      getPayload().length);
}
origin: com.netflix.suro/suro-kafka

@Override
public String toString() {
  return String.format("routingKey: %s, payload byte size: %d",
      getRoutingKey(),
      getPayload().length);
}
origin: com.netflix.suro/suro-kafka

@Override
protected void write(List<Message> msgList) {
  final List<KeyedMessage<Long, byte[]>> kafkaMsgList = new ArrayList<KeyedMessage<Long, byte[]>>();
  for (Message m : msgList) {
    SuroKeyedMessage keyedMessage = (SuroKeyedMessage) m;
    kafkaMsgList.add(new KeyedMessage<Long, byte[]>(
        keyedMessage.getRoutingKey(),
        keyedMessage.getKey(),
        keyedMessage.getPayload()));
  }
  senders.submit(new Runnable() {
    @Override
    public void run() {
      producer.send(kafkaMsgList);
    }
  });
}
com.netflix.suro.sink.kafkaSuroKeyedMessagegetRoutingKey

Popular methods of SuroKeyedMessage

  • <init>
  • getKey
  • getPayload

Popular in Java

  • Updating database using SQL prepared statement
  • notifyDataSetChanged (ArrayAdapter)
  • getApplicationContext (Context)
  • setScale (BigDecimal)
  • MessageDigest (java.security)
    Uses a one-way hash function to turn an arbitrary number of bytes into a fixed-length byte sequence.
  • NumberFormat (java.text)
    The abstract base class for all number formats. This class provides the interface for formatting and
  • Scanner (java.util)
    A parser that parses a text string of primitive types and strings with the help of regular expressio
  • ConcurrentHashMap (java.util.concurrent)
    A plug-in replacement for JDK1.5 java.util.concurrent.ConcurrentHashMap. This version is based on or
  • ZipFile (java.util.zip)
    This class provides random read access to a zip file. You pay more to read the zip file's central di
  • JPanel (javax.swing)
  • Best IntelliJ plugins
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