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

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

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

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);
    }
  });
}
origin: com.netflix.suro/suro-kafka-producer

for( Message m : msgList ){
  SuroKeyedMessage sKeyedMsg = (SuroKeyedMessage) m;
  msgCopies.add( new SuroKeyedMessage( sKeyedMsg.getKey(), 
                     new Message( m.getRoutingKey(), m.getPayload() )));
com.netflix.suro.sink.kafkaSuroKeyedMessagegetKey

Popular methods of SuroKeyedMessage

  • <init>
  • getPayload
  • getRoutingKey

Popular in Java

  • Reading from database using SQL prepared statement
  • getApplicationContext (Context)
  • getResourceAsStream (ClassLoader)
  • setRequestProperty (URLConnection)
  • GridBagLayout (java.awt)
    The GridBagLayout class is a flexible layout manager that aligns components vertically and horizonta
  • BitSet (java.util)
    The BitSet class implements abit array [http://en.wikipedia.org/wiki/Bit_array]. Each element is eit
  • SortedMap (java.util)
    A map that has its keys ordered. The sorting is according to either the natural ordering of its keys
  • ImageIO (javax.imageio)
  • IOUtils (org.apache.commons.io)
    General IO stream manipulation utilities. This class provides static utility methods for input/outpu
  • Table (org.hibernate.mapping)
    A relational table
  • 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